[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: avoid build warn/failure due to -Wstack-protector
From: |
Jim Meyering |
Subject: |
[PATCH] build: avoid build warn/failure due to -Wstack-protector |
Date: |
Thu, 09 Jul 2009 15:23:27 +0200 |
I got this build failure on i686/ubuntu-9.04:
cc1: warnings being treated as errors
df.c: In function 'find_mount_point':
df.c:524: error: not protecting local variables: variable length buffer
[-Wstack-protector]
make[3]: *** [df.o] Error 1
Fixed it with this:
>From a9461064b8d47089e9ae7f8bc1c5c84e9e2d1d64 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 9 Jul 2009 15:20:15 +0200
Subject: [PATCH] build: avoid build warn/failure due to -Wstack-protector
* configure.ac: Do not enable -Wstack-protector.
Otherwise, at least df.c would provoke a warning.
---
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 32d2958..4cb9d29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,7 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
nw="$nw -Wswitch-enum" # Too many warnings for now
nw="$nw -Wswitch-default" # Too many warnings for now
+ nw="$nw -Wstack-protector" # not worth working around
# things I might fix soon:
nw="$nw -Wfloat-equal" # sort.c, seq.c
nw="$nw -Wmissing-format-attribute" # copy.c
--
1.6.3.3.524.g8586b
- [PATCH] build: avoid build warn/failure due to -Wstack-protector,
Jim Meyering <=