C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
TNS C Compiler Messages
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
20-38
Types of Compiler Messages
218
A label has been specified immediately before the end of a compound statement.
222
All the members of a structure have to reside in the data space or the code space;
mixing is not possible.
224
The declarations for a pointer modified with the _cspace attribute are different. For
example:
#pragma csaddr
_cspace const struct S_tag { int i,j,k; } s = { 10, 20, 30 };
/* Declared as 6 bytes */
func1 (_cspace const char * );
foo()
{
_cpace const char *q; /* Declared as 1 byte */
q = (const char *) &s;
foo1 ( q );
/* Only one byte copied and passed, */
} /* but points at a six-byte structure */
225
A local variable and function parameter have the same name. For example:
int main(int argc, char *argv[])
{
int argc; /* This line causes the warning */
}
no statement following a label
structure cannot contain members in code and data space at
the same time
number of bytes passed relies on previous declaration only
local variable name variable-name same as function parameter