Warns of possible problems with string input and output format specifications. Functions diagnosed are printf, scanf, strftime, strfmon family functions and functions marked with format attributes.
.- -qnoformat---------------------------------. +- -qformat--=--noall-------------------------+ | .-=--all-----------------------. | >>-+- -qformat--+------------------------------+-+------------->< | .-:-----------------. | | V | | '-=------+----+--+-all---+-+---' '-no-' +-exarg-+ +-nlt---+ +-sec---+ +-y2k---+ '-zln---'
where suboptions are:
If -qformat is not specified on the command line, the compiler assumes a default setting of -qnoformat, which is equivalent to -qformat=noall.
If -qformat is specified on the command line without any suboptions, the compiler assumes a default setting of -qformat=all.
To enable all format string diagnostics, enter either of the following:
xlc++ myprogram.C -qformat=all
xlc++ myprogram.C -qformat
xlc++ myprogram.C -qformat=all:noy2k
Related information