-qproto

C only

Description

If this option is set, the compiler assumes that all functions are prototyped.

Syntax

Read syntax diagramSkip visual syntax diagram        .-noproto-.
>>- -q--+-proto---+--------------------------------------------><

Notes

This option asserts that procedure call points agree with their declarations even if the procedure has not been prototyped.

Callers can pass floating-point arguments in floating-point registers only and not in General-Purpose Registers (GPRs). The compiler assumes that the arguments on procedure calls are the same types as the corresponding parameters of the procedure definition.

The compiler will issue warnings for functions that do not have prototypes.

Example

To compile my_c_program.c to assume that all functions are prototyped, enter:

xlc my_c_program.c -qproto

Related information