Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Want to clear up warning messages

Brian_A_
Novice
1,426 Views
I am just wanting to clear up some warning messages that I am getting.
[bash]sglowlvl.f90(61): warning #6075: The data type of the actual argument does not match the definition.   [X1]
          CALL SETVIEWPORT(graph.x1,graph.y1,graph.x2,graph.y2) ! clip                          
---------------------------------^
sglowlvl.f90(61): warning #6075: The data type of the actual argument does not match the definition.   [Y1]
          CALL SETVIEWPORT(graph.x1,graph.y1,graph.x2,graph.y2) ! clip                          
------------------------------------------^
sglowlvl.f90(61): warning #6075: The data type of the actual argument does not match the definition.   [X2]
          CALL SETVIEWPORT(graph.x1,graph.y1,graph.x2,graph.y2) ! clip                          
---------------------------------------------------^
sglowlvl.f90(61): warning #6075: The data type of the actual argument does not match the definition.   [Y2]
          CALL SETVIEWPORT(graph.x1,graph.y1,graph.x2,graph.y2) ! clip                          
------------------------------------------------------------^
sglowlvl.f90(66): warning #6075: The data type of the actual argument does not match the definition.   [GRAPHBGCOLOR]
          retVal=SETCOLOR(graph.graphBgColor)                                                   
--------------------------------^
sglowlvl.f90(67): warning #6075: The data type of the actual argument does not match the definition.   [X1]
          retVal=RECTANGLE($GFILLINTERIOR,graph.x1,graph.y1,  &                                 
------------------------------------------------^
sglowlvl.f90(67): warning #6075: The data type of the actual argument does not match the definition.   [Y1]
          retVal=RECTANGLE($GFILLINTERIOR,graph.x1,graph.y1,  &                                 
---------------------------------------------------------^
sglowlvl.f90(68): warning #6075: The data type of the actual argument does not match the definition.   [X2]
                                  graph.x2,graph.y2)    ! "background"                          
----------------------------------------^
sglowlvl.f90(68): warning #6075: The data type of the actual argument does not match the definition.   [Y2]
                                  graph.x2,graph.y2)    ! "background"                          
-------------------------------------------------^
sglowlvl.f90(69): warning #6075: The data type of the actual argument does not match the definition.   [GRAPHCOLOR]
          retVal=SETCOLOR(graph.graphColor)                                                     
--------------------------------^[/bash]
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,426 Views
These are all telling you that your arguments are of the wrong data type. For example, in the call to SETVIEWPORT, all of the arguments are supposed to be INTEGER(2). You probably declared those components as INTEGER(4) or just INTEGER, hence the errors.

Look up the documentation of each routine and carefully note the data type (and "kind") of the arguments. Make sure your declarations of the actual arguments match. Failure to do so could give you unexpected results.
0 Kudos
Brian_A_
Novice
1,426 Views
These are all telling you that your arguments are of the wrong data type. For example, in the call to SETVIEWPORT, all of the arguments are supposed to be INTEGER(2). You probably declared those components as INTEGER(4) or just INTEGER, hence the errors.

Look up the documentation of each routine and carefully note the data type (and "kind") of the arguments. Make sure your declarations of the actual arguments match. Failure to do so could give you unexpected results.

I got rid of half of the warnings. I have a few left and can't seem to get rid of them. For the ones that I got rid of I changed integer to integer(2).

[bash]sgdraw.f90(111): warning #6075: The data type of the actual argument does not match the definition.   
              retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                             
----------------------------------------------^
sgdraw.f90(111): warning #6075: The data type of the actual argument does not match the definition.   
              retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                             
------------------------------------------------^
sgdraw.f90(111): warning #6075: The data type of the actual argument does not match the definition.
              retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                             
---------------------------------------------------^
sgdraw.f90(111): warning #6075: The data type of the actual argument does not match the definition.
              retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                             
-----------------------------------------------------------^
sgdraw.f90(115): warning #6075: The data type of the actual argument does not match the definition.   [BARTYPE]
          CALL SciSetFillType(barType)                                                          
------------------------------^
sgdraw.f90(116): warning #6075: The data type of the actual argument does not match the definition.   
          retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                                 
------------------------------------------^
sgdraw.f90(116): warning #6075: The data type of the actual argument does not match the definition.   
          retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                                 
--------------------------------------------^
sgdraw.f90(116): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                                 
-----------------------------------------------^
sgdraw.f90(116): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GFILLINTERIOR,x,y,x+width,y+height)                                 
-------------------------------------------------------^
sgdraw.f90(117): warning #6075: The data type of the actual argument does not match the definition.   
          retv=RECTANGLE_W($GBORDER,x,y,x+width,y+height)                                       
------------------------------------^
sgdraw.f90(117): warning #6075: The data type of the actual argument does not match the definition.   
          retv=RECTANGLE_W($GBORDER,x,y,x+width,y+height)                                       
--------------------------------------^
sgdraw.f90(117): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GBORDER,x,y,x+width,y+height)                                       
-----------------------------------------^
sgdraw.f90(117): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GBORDER,x,y,x+width,y+height)                                       
-------------------------------------------------^
sgdraw.f90(302): warning #6075: The data type of the actual argument does not match the definition.   [XB]
          retv=RECTANGLE_W($GBORDER,xb,yb,xb+xw,yb+yw)                                          
------------------------------------^
sgdraw.f90(302): warning #6075: The data type of the actual argument does not match the definition.   [YB]
          retv=RECTANGLE_W($GBORDER,xb,yb,xb+xw,yb+yw)                                          
---------------------------------------^
sgdraw.f90(302): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GBORDER,xb,yb,xb+xw,yb+yw)                                          
--------------------------------------------^
sgdraw.f90(302): warning #6075: The data type of the actual argument does not match the definition.
          retv=RECTANGLE_W($GBORDER,xb,yb,xb+xw,yb+yw)                                          
--------------------------------------------------^
sgdraw.f90(309): warning #6075: The data type of the actual argument does not match the definition.   [LINETYPE]
              CALL SciLine_w(lineType,DBLE(xp),           &                                     [/bash]

0 Kudos
Steven_L_Intel1
Employee
1,426 Views
You have to go through each of these calls and match up the types of the arguments. The messages point you at what needs to be looked at. Most of these are QuickWin routines, which are documented. Some are your own routines. If you ignore them, your program may not work right.
0 Kudos
Reply