View | Details | Raw Unified | Return to bug 263791 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-mgmt/collectd5/files/patch-configure.ac (-4 / +80 lines)
Lines 1-6 Link Here
1
--- configure.ac.orig	2020-03-19 09:52:56.280271200 +0100
1
--- configure.ac.orig	2020-09-03 04:09:35.126575027 -0700
2
+++ configure.ac	2020-03-27 19:05:05.205060000 +0100
2
+++ configure.ac	2022-05-06 18:59:54.574982000 -0700
3
@@ -6475,7 +6475,7 @@ AC_ARG_WITH([libslurm],
3
@@ -757,7 +757,7 @@
4
 
5
 if test "x$GCC" = "xyes"; then
6
   SAVE_CFLAGS="$CFLAGS"
7
-  CFLAGS="$CFLAGS -Wall -Werror"
8
+  CFLAGS="$CFLAGS -Wall "
9
 fi
10
 SAVE_LDFLAGS="$LDFLAGS"
11
 LDFLAGS=""
12
@@ -929,7 +929,7 @@
13
 # Check for strptime {{{
14
 if test "x$GCC" = "xyes"; then
15
   SAVE_CFLAGS="$CFLAGS"
16
-  CFLAGS="$CFLAGS -Wall -Wextra -Werror"
17
+  CFLAGS="$CFLAGS -Wall -Wextra "
18
 fi
19
 
20
 AC_CHECK_FUNCS([strptime], [have_strptime="yes"], [have_strptime="no"])
21
@@ -1000,10 +1000,10 @@
22
 
23
 # Check for timegm {{{
24
 
25
-# These checks need -Werror because implicit function declarations are only a
26
+# These checks need  because implicit function declarations are only a
27
 # warning ...
28
 SAVE_CFLAGS="$CFLAGS"
29
-CFLAGS="$CFLAGS -Werror"
30
+CFLAGS="$CFLAGS "
31
 
32
 AC_CACHE_CHECK([for timegm],
33
   [c_cv_have_timegm],
34
@@ -3874,7 +3874,7 @@
35
   SAVE_LIBS="$LIBS"
36
   CPPFLAGS="$CPPFLAGS $with_libnetsnmp_cppflags"
37
   if test "x$GCC" = "xyes"; then
38
-    CPPFLAGS="$CPPFLAGS -Wall -Werror"
39
+    CPPFLAGS="$CPPFLAGS -Wall "
40
   fi
41
   LDFLAGS="$LDFLAGS $with_libnetsnmp_ldflags"
42
   LIBS="$LIBS -lnetsnmp"
43
@@ -4348,7 +4348,7 @@
44
   SAVE_LIBS="$LIBS"
45
   CFLAGS="$CFLAGS $PERL_CFLAGS"
46
   if test "x$GCC" = "xyes"; then
47
-    CFLAGS="$CFLAGS -Wall -Werror"
48
+    CFLAGS="$CFLAGS -Wall "
49
   fi
50
   LIBS="$LIBS $PERL_LIBS"
51
 
52
@@ -5810,6 +5810,7 @@
53
     [],
54
     [],
55
     [[
56
+      #include <time.h>
57
       #include <stdlib.h>
58
       #include <stdio.h>
59
       #include <upsclient.h>
60
@@ -6507,7 +6508,7 @@
4
     else if test -d "$with_libslurm/lib"; then
61
     else if test -d "$with_libslurm/lib"; then
5
       AC_MSG_NOTICE([Not checking for libslurm: Manually configured])
62
       AC_MSG_NOTICE([Not checking for libslurm: Manually configured])
6
       with_libslurm_cflags="-I$withval/include"
63
       with_libslurm_cflags="-I$withval/include"
Lines 9-11 Link Here
9
       with_libslurm="yes"
66
       with_libslurm="yes"
10
     fi; fi; fi
67
     fi; fi; fi
11
   ],
68
   ],
12
- 
69
@@ -6579,7 +6580,7 @@
70
 AC_COLLECTD([debug],     [enable],  [feature], [debugging])
71
 AC_COLLECTD([daemon],    [disable], [feature], [daemon mode])
72
 AC_COLLECTD([getifaddrs],[enable],  [feature], [getifaddrs under Linux])
73
-AC_COLLECTD([werror],    [disable], [feature], [building with -Werror])
74
+AC_COLLECTD([werror],    [disable], [feature], [building with ])
75
 
76
 dependency_warning="no"
77
 dependency_error="no"
78
@@ -7348,8 +7349,8 @@
79
   AM_CFLAGS="-Wall"
80
   AM_CXXFLAGS="-Wall"
81
   if test "x$enable_werror" != "xno"; then
82
-    AM_CFLAGS="$AM_CFLAGS -Werror"
83
-    AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
84
+    AM_CFLAGS="$AM_CFLAGS "
85
+    AM_CXXFLAGS="$AM_CXXFLAGS "
86
   fi
87
 fi
88
 

Return to bug 263791