File: 05_add_option_to_cflag.diff

package info (click to toggle)
hydra 9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,856 kB
  • sloc: ansic: 22,258; sh: 2,530; makefile: 137
file content (16 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Add -Wall to build options
 and drop -O3 optimization level according debian policy
Author: Julián Moreno Patiño <darkjunix@gmail.com>
Forwarded: not-needed
Last-Update: 2025-09-06
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@
 WARN_CLANG=-Wformat-nonliteral -Wstrncat-size -Wformat-security -Wsign-conversion -Wconversion -Wfloat-conversion -Wshorten-64-to-32 -Wuninitialized -Wmissing-variable-declarations  -Wmissing-declarations
 WARN_GCC=-Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-truncation=2 -Wnull-dereference -Wstrict-overflow=2 -Wstringop-overflow=4 -Walloca-larger-than=4096 -Wtype-limits -Wconversion -Wtrampolines -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fno-common -Wcast-align
 CFLAGS ?= -g
-OPTS=-I. -O3 $(CFLAGS) -fcommon -Wno-deprecated-declarations
+OPTS=-I. -Wall $(CFLAGS) -fcommon -Wno-deprecated-declarations
 CPPFLAGS += -D_GNU_SOURCE -Wno-deprecated-declarations -Wno-unused-command-line-argument
 # -Wall -g -pedantic
 LIBS=-lm