-qwarn64

Pragma equivalent

None.

Purpose

Enables checking for possible data conversion problems between 32-bit and 64-bit compiler modes.

When -qwarn64 is in effect, informational messages are displayed where data conversion may cause problems in 64-bit compilation mode, such as:

  • Truncation due to explicit or implicit conversion of long types into int types
  • Unexpected results due to explicit or implicit conversion of int types into long types
  • Invalid memory references due to explicit conversion by cast operations of pointer types into int types
  • Invalid memory references due to explicit conversion by cast operations of int types into pointer types
  • Problems due to explicit or implicit conversion of constants into long types
  • Problems due to explicit or implicit conversion by cast operations of constants into pointer types

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nowarn64-.   
>>- -q--+-warn64---+-------------------------------------------><

Defaults

-qnowarn64

Usage

This option functions in either 32-bit or 64-bit compiler modes. In 32-bit mode, it functions as a preview aid to discover possible 32-bit to 64-bit migration problems.

Predefined macros

None.

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us