python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / libcoap / 0001-configure-only-add-Wunused-result-if-supported-by-th.patch
blobbc93890450d35aaab003b0e044b5b87383e6c8b0
1 From d5914ecbb0285aea1eb2b9432d6e91155877fd95 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 9 Jun 2016 21:53:59 +0200
4 Subject: [PATCH] configure: only add -Wunused-result if supported by the
5 compiler
7 Old gcc versions such as 4.3.x do not support -Wunused-result, so
8 instead of unconditionally using this warning, only use it if supported
9 by the compiler.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13 Submitted upstream: https://github.com/obgm/libcoap/pull/32
15 configure.ac | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/configure.ac b/configure.ac
19 index f4452ac..6354fcf 100644
20 --- a/configure.ac
21 +++ b/configure.ac
22 @@ -110,12 +110,12 @@ WARNING_CFLAGS="\
23 -Wswitch-default \
24 -Wswitch-enum \
25 -Wunused \
26 --Wunused-result \
29 # check whether or not the compiler supports -Wlogical-op (clang does not...)
30 AX_CHECK_COMPILE_FLAG([-Wlogical-op], [WARNING_CFLAGS="$WARNING_CFLAGS -Wlogical-op"],,[-Werror])
31 AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"],,[-Werror])
32 +AX_CHECK_COMPILE_FLAG([-Wunused-result], [WARNING_CFLAGS="$WARNING_CFLAGS -Wunused-result"])
34 AC_SUBST([WARNING_CFLAGS])
36 --
37 2.7.4