This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17657] New: function may return address of local variable


https://sourceware.org/bugzilla/show_bug.cgi?id=17657

            Bug ID: 17657
           Summary: function may return address of local variable
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: drepper.fsp at gmail dot com

GCC 5 complains:

programs/ld-ctype.c: In function 'find_translit':
cc1: warning: function may return address of local variable
[-Wreturn-local-addr]
programs/ld-ctype.c:1780:29: note: declared here
        return (uint32_t []) { 0 };
                             ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]