HP aC++/HP C A.06.25 Programmer's Guide
This warning can be suppressed by adding an extra cast:
fread((char*)(void*)ai, sizeof(char), 1, stdin); // OK
Another +wendian warning captures cases where a cast when later dereferenced can
cause endian issues.
Preprocessor Options
The following options are accepted by the preprocessor:
-C
-C
Using the -C option prevents the preprocessor from stripping comments. See the
description of cpp in the cpp(1) manpage for details.
-dM
-dM
When -dM is present, instead of normal preprocessor output the compiler lists the
#define directives it encounters as it preprocesses the file, thus providing a list of all
macros that are in effect at the start of the compilation. The -dM option requires that
-P or -E also be specified.
A common use of this option is to determine the compiler's predefined macros. For
example:
touch foo.c ; cc -E -dM foo.c
-Dname
-Dname[=def]
name is the symbol name that is defined for the preprocessor.
def is the definition of the symbol name (name).
The -Dname option defines a symbol name (name) to the preprocessor, as if defined
by the preprocessing directive#define.
If no definition (def) is given, the name is defined as 1.
NOTE: __ia64 and __HP_aCC are defined automatically.
Example:
The following example defines the preprocessor symbol DEBUGFLAG and gives it the
value 1.
aCC -DDEBUGFLAG file.C
The following program uses this symbol:
Preprocessor Options 97