IBM Support

IJ24678: WARNING MESSAGES CLAIMING THAT "THE ATTRIBUTE IS NOT SUPPORTED" IS GENERATED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The follwing testcase produces the extra warning message
    
    
    struct A {
      void (*fp)(const char *, ...) __attribute__(( format(printf,
    1, 2) ));
    };
    
    
    Actual Output:
    --------------
    xlc t2.c -c
    t2.c:2:49: warning: 1540-2990 The attribute "
    __attribute__((format(printf, 1, 2)))" is not supported. The
    attribute is ignored.
      void (*fp)(const char *, ...) __attribute__(( format(printf,
    1, 2) ));
                                                    ^
    1 warning generated.
    
    Expected Output:
    ---------------
    NO warnings
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users with the __format__ attribute applied to
    class/struct/union data members maybe affected by this issue.
    
    PROBLEM DESCRIPTION:
    The compiler generates a warning messages claiming that 'the
    attribute is not supported' is generated.
    

Problem conclusion

  • The compiler has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ24678

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    G10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-04-30

  • Closed date

    2020-04-30

  • Last modified date

    2020-04-30

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

    LI81402

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

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
22 August 2024