Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (c) c89(1)
-Wbuild_neutral_library
Specifies that the compiler should issue an error message when it encounters any
exported or imported interface in a DLL that depends on types marked as being incom-
patible with the neutral C++ dialect.
This flag is valid only for TNS/E-targeted C++ compilations and only when the -Wver-
sion2 or -Wversion3 flag is also used.
-WC Retains comments when preprocessing files. Comments are removed from preproces-
sor output by default.
-Wc99lite
Enables selected c99 features. This flag:
Must not be used with the -Wsql or the Wkr flag.
Has an effect only when you compile C source code. It has no effect when you
compile C++ source code and no diagnostic message is issued when you use
this flag when you compile C++ source code.
Has an effect only if you also specify either the -Wtarget=ipf flag or the
-Wtarget=tns/e flag. If you specify the -Wtarget=mips or the -Wtarget=tns/r
flag, the compiler issues a warning message.
If you want to use c99 features not offered through the -Wc99lite option, you can use
the c99 utility. For more information about c99 utility, see the c99(1) reference page.
-Wcall_shared | -Wnon_shared | -Wshared
Directs the compiler to create a specific type of object file:
-Wcall_shared Specifies that the object file should be a PIC file; the ld or eld linker is
invoked. If the -c flag is also specified, the file is a linkfile. Otherwise,
the file is an executable object file (loadfile).
This is the default behavior for a TNS/E-targeted compilation.
You cannot use this flag if you use the -Wsrl flag.
-Wnon_shared
Specifies that the object file should not be a PIC file; the nld linker is
invoked. You can use this flag only for a TNS/R-targeted compilation;
this flag is ignored when specified for a TNS/E-targeted compilation.
This is the default behavior for a TNS/R-targeted compilation.
-Wshared Specifies that the file should be a PIC DLL; the ld or eld linker is
invoked. You cannot use this flag if you use the -c or -Wsrl flag.
-Wcodecov
Directs the compiler to create an instrumented object file and to create or add to an
existing SPI file. This flag has an effect only if you also specify either the
-Wtarget=ipf flag or the -Wtarget=tns/e flag.
The first time the -Wcodecov flag is used to compile a program, the compiler creates a
Static Profiling Information (SPI) file. This file is one of the input files for the Code
Coverage tool. If the program is compiled in an OSS directory:
The default name for the SPI file is pgopti.spi.
527188-021 Hewlett-Packard Company 27