...integer(4) ippointer (p,ip)...(no further reference to the pointee, ip)...
cause the compiler to warn that the pointee is never used? Superficially it looks like it is 'used'.
How does it look like it is used? It doesn't to me.
It superficially looks to be 'used' in the sense that it's the designated pointee of the pointer. How can it be used if only to get rid of the warning?
That's a declaration, not a use. If you have a reference to it in the executable section, that's a use. You might be also able to turn off the diagnostic by naming the pointee in a VOLATILE statement, though I didn't try this.
Indeed. Volatile didn't eliminate the warning but using the pointee in the executable statement
does. Not a profound issue but one that always had me puzzled.