Hello List Members,

Here is a compilable code snippet in HP C/iX. I always get the Warning
604. I cannot think of a cast to eliminate it. According to the book;

"604 Pointers are not assignment-compatible.

In an assignment expression, if both the left hand and right hand side
expressions are pointers, then the right hand side expression must
either be the same type as the left side expression, or a pointer to
void.

Correct the expression (possibly by inserting a cast).

ANSI 3.3.16.1"

So what am I missing. The right hand side IS a void so why do I get the
warning?

John Zoltak
North American Mfg Co

:ccxl ctest01;info="-Aa"
WED OCT 28 1998  9:29 AM  Copyright Hewlett-Packard Co.  1984.
PAGE     1
HP C/iX HP31506 A.05.19
"CTEST01"

    1  0   # 1 "CTEST01.PUB.LIB"
    1  0   #pragma intrinsic HPGETPROCPLABEL
    2  0
    3  0   short (*pASCII)(short word, short base, char *string);
    4  0
    5  0   void *load()
    6  0   {
    7  1      int pLabel;
    8  1      HPGETPROCPLABEL("%ASCII%", &pLabel);
    9  1      return (void*) pLabel;
   10  1   }
   11  0
   12  0   void main()
   13  0   {
   14  1      pASCII = load();
   15  1   }
cc: "CTEST01.PUB.LIB", line 14: warning 604: Pointers are not
assignment-compatible.

END OF COMPILE