mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Fix sysdeps/unix/sysv/linux/arm/libc-do-syscall.S warning.
This patch fixes a warning ../include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] seen when building for ARM. This warning comes from libc-do-syscall.S being built for nscd: the nscd build uses _FORTIFY_SOURCE, while .S files aren't built with -O, and the combination produces a warning. As _FORTIFY_SOURCE doesn't do anything for .S files, undefining it in libc-do-syscall.S seems the simplest solution. Tested for ARM. * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE): Undefine.
This commit is contained in:
parent
706688aaef
commit
a6f3079bfb
@ -1,5 +1,8 @@
|
||||
2014-11-26 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
|
||||
Undefine.
|
||||
|
||||
[BZ #16619]
|
||||
[BZ #16740]
|
||||
* sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
|
||||
|
@ -15,6 +15,9 @@
|
||||
License along with the GNU C Library. If not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* When this file is built for inclusion in nscd, _FORTIFY_SOURCE is
|
||||
defined but -O is not used, resulting in a warning from features.h. */
|
||||
#undef _FORTIFY_SOURCE
|
||||
#include <sysdep.h>
|
||||
|
||||
/* Out-of-line syscall stub. We expect the system call number in ip
|
||||
|
Loading…
Reference in New Issue
Block a user