C++ Compiler Warnings

From RAD Studio
Jump to: navigation, search

Go Up to C++ Compiler


Project > Options > Building > C++ Compiler > Warnings

Use this dialog box to set C++ compiler warning options.

Options Description

Target, Apply, Save

See Target Options.

Common items

See Common Items on Project Options Pages.


Warnings Options Description Compiler switches
bcc32 bcc32c bcc64 bccosx bcciosarm bcciosarm64 bccaarm

Disable all warnings

Disables all warning and error messages. Default = False

-w-

-w-

-w

-w-

-w

-w

-w

Enable all warnings

Displays all warning and error messages. Default = False

-w

-Weverything

-Weverything

-w

-Weverything

-Weverything

-Weverything

Enable selected warnings

Enables only the warning that are set to True. C++ Warning messages are described in Compiler Errors And Warnings (C++) Index. Default = True

-w<warning code>
See C++ Warnings topic for the warning codes.

Platform not supported

Platform not supported

-w<warning code>
See C++ Warnings topic for the warning codes.

Platform not supported

Platform not supported

Platform not supported

Treat warnings as errors

Instructs the compiler to stop compilation and return an error message when an enabled warning is generated. Default = False

-w!

-Werror

-Werror

-w!

-Werror

-Werror

-Werror

See Also