IBM Support

IV80416: INVALID QWARN64 MESSAGE WITH VA_START

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Usage of va_start with the -qwarn64 option will output two
    invalid 64-bit portability warning messages.
    
    
       === TEST CASE ===
    
    #include <stdarg.h>
    
    void test( char *format, ...)
    {
        va_list    args;
    
        va_start(args, format);
        vprintf(format, args);
        va_end(args);
    }
    
    void main( void )
    {
        test("[%s] [%d] [%s] \n", "MSG1", 2222 , "MSG3");
    }
    
    
    $ xlc apar.c -qwarn64
    "apar.c", line 7.20: 1506-744 (I) 64-bit portability: possible
    truncation of pointer through conversion of pointer type into
    unsigned long int type.
    "apar.c", line 7.5: 1506-745 (I) 64-bit portability: possible
    incorrect pointer through conversion of unsigned long int type
    into pointer.
    $
    

Local fix

  • Avoid -qwarn64 option with va_start usage, or use -qsuppress for
    the specific warning messages.
    

Problem summary

  • PROBLEM DESCRIPTION:
    Internal compiler generated expressions were triggering
    warnings due to possibly unsafe pointer conversions.
    
    USERS AFFECTED:
    Those who use va_start with the -qwarn64 option.
    

Problem conclusion

  • The issue has been correct, and the warnings are no longer
    output.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV80416

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-19

  • Closed date

    2016-02-24

  • Last modified date

    2016-02-24

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IV85630

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RD10 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IV80416

Modified date: 24 February 2016