File: enforce-format.patch

package info (click to toggle)
lbreakouthd 1.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,036 kB
  • sloc: cpp: 6,339; ansic: 5,436; sh: 4,755; makefile: 230; sed: 16
file content (17 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Enforce format warnings
Author: Stephen Kitt <skitt@debian.org>

The -Wno-format option conflicts with hardening options set in the
Debian build.

--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@
 AC_SUBST(datdir)
 AC_SUBST(hiscoredir)
 
-CFLAGS="$CFLAGS -Wno-int-conversion -Wno-format -Wno-implicit-function-declaration"
+CFLAGS="$CFLAGS -Wno-int-conversion -Wno-implicit-function-declaration"
 CFLAGS="$CFLAGS $debugflags -DSRC_DIR=\\\"$datdir\\\" -DCONFIG_DIR_NAME=\\\"$configdir\\\""
 CXXFLAGS="$CXXFLAGS -std=c++11 -Wall $debugflags -DLOCALEDIR=\\\"$localedir\\\" -DCONFIGDIR=\\\"$configdir\\\" -DDATADIR=\\\"$datdir\\\" -DHISCOREDIR=\\\"$hiscoredir\\\""