LI77031: COMPLER ISSUES INVALID WARNING

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Compiler incorrectly issues warning while compiling the
    following C program:
    
    $cat small.c
    void f() { }
    void g() { return f(); }
    
    
    $xlc -c small.c
    "small.c", line 2.20: 1506-1332 (W) A function with return type
    "void" may not return a value of type "void".
    

Local fix

  • Use option -qsuppress=1506-1332 to suppress the warning.
    

Problem summary

  • Compiler generates warning when function of type void returns
    another function of type void
    

Problem conclusion

  • Problem had been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77031

  • Reported component name

    XL C/C++ FOR BG

  • Reported component ID

    5799AG100

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-25

  • Closed date

    2012-11-23

  • Last modified date

    2012-11-23

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

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

Fix information

  • Fixed component name

    XL C/C++ FOR BG

  • Fixed component ID

    5799AG100

Applicable component levels

  • RC10 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

XL C/C++ for Blue Gene/Q
Compiler

Software version:

12.1

Reference #:

LI77031

Modified date:

2012-11-23

Translate my page

Machine Translation

Content navigation