This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17657] New: function may return address of local variable
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 27 Nov 2014 16:25:09 +0000
- Subject: [Bug libc/17657] New: function may return address of local variable
- Auto-submitted: auto-generated
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.