hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Do not add -Werror when --enable-debug is used
 
Using -Werror causes some problems due to warnings in the SDL_sound
code, so let's disable it.
 
We patch configure directly, because:
 
 1/ configure.in doesn't autoreconf properly out of the box.
 
 2/ the length of the configure or configure.in patch would be exactly
    the same (one line), or maybe more for the configure.in patch if
    we want the package to autoreconf properly
 
 3/ the patch will never go upstream, because upstream is dead.
 
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 
Index: b/configure
===================================================================
--- a/configure
+++ b/configure
@@ -19561,7 +19561,6 @@
   else
     CFLAGS="-O0"
   fi
-  CFLAGS="$CFLAGS -Werror"
 
 cat >>confdefs.h <<\_ACEOF
 #define DEBUG 1