VMS Help
CXX, Qualifiers, /WARNINGS

 *Conan The Librarian

       /WARNINGS
       /WARNINGS[=(option[,...])]
       /WARNINGS (D)
       /NOWARNINGS

    Controls the issuance of compiler diagnostic messages and lets
    you modify the severity of messages.

    The default qualifier, /WARNINGS, outputs all enabled warning
    and informational messages for the compiler mode you are using.
    The /NOWARNINGS qualifier suppresses warning and informational
    messages.

    Options apply only to warning and informational messages.

    The message-list in the following table of options can be any one
    of the following:

    o  A single message identifier (within parentheses, or not). The
       message identifier is the name following the message severity
       letter on the first line of an issued message. For example, in
       the following message, the message identifier is GLOBALEXT:

       %CC-W-GLOBALEXT, a storage class of globaldef, globalref, or globalvalue
       is a language extension.

    o  A comma-separated list of message identifiers, enclosed in
       parentheses.

    o  The keyword ALL.

    The options are processed and take effect in the following order:

    NOWARNINGS             Suppresses warnings.
    NOINFORMATIONALS       Suppresses informational messages.
    ENABLE=message-list    Enables issuance of the specified
                           messages. Can be used to enable specific
                           messages that normally would not be issued
                           when using /QUIET or messages disabled
                           with /WARNINGS=DISABLE.
    DISABLE=message-list   Disables issuance of the specified
                           messages. Can be used for any nonerror
                           message specified by a message number
                           or tag. Specify ALL to suppress all
                           informationals and warnings.
    INFORMATIONALS=message-Sets the severity of all specified
    list                   messages to Informational. Fatal and Error
                           messages cannot be made less severe. Can
                           also be used to enable informationals that
                           are disabled by default.

                           Note: With C++ Version 7.1, using
                           /WARNINGS=INFORMATIONALS=<tag> no longer
                           enables all other informational messages.
    WARNINGS=message-      Sets the severity of the specified
    list                   messages to Warning. Fatal and Error
                           messages cannot be made less severe.
    [NO]ANSI_ERRORS        Issues error messages for all ANSI
                           violations when in STRICT_ANSI mode. The
                           default is /WARNINGS=NOANSI_ERRORS.
    [NO]TAGS               Displays a descriptive tag at the end
                           of each message. "D" indicates that the
                           severity of the message can be controlled
                           from the command line. The tag displayed
                           can be used as the message identifier in
                           the /WARNINGS qualifier options.
    ERRORS=message-list    Sets the severity of the specified
                           messages to Error.

                           Supplied Error and Fatal messages cannot
                           be made less severe. (Exception: A message
                           can be upgraded from Error to Fatal, then
                           later downgraded to Error again, but it
                           can never be downgraded from Error.)

                           Warnings and Informationals can be made
                           any severity.
    FATALS=message-list    Sets the severity of the specified
                           messages to Fatal.

    Also see the #pragma message preprocessor directive.
  Close     Help