absolute pointer

Kathy Harris kah at hpfclq.HP.COM
Tue Nov 4 02:27:26 AEST 1986


>rap.c, line 310: warning: absolute pointer used

>Lines 310 & 369 are the exact same and look like this:

>		if ( shmaddr EQ (char *) -1 ) {


The HP9000 Series 500 C compiler issues this warning whenever an
integer constant other than 0 is used as a pointer.  Its intent
is to flag statements that are machine dependent in code ported
from other systems.

Kathy Harris
Hewlett Packard, Systems Software Operation
{hplabs, ihnp4}!hpfcla!kah



More information about the Comp.lang.c mailing list