summaryrefslogtreecommitdiff
path: root/debian/patches/no-gcc-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/no-gcc-warnings.patch')
-rw-r--r--debian/patches/no-gcc-warnings.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/no-gcc-warnings.patch b/debian/patches/no-gcc-warnings.patch
new file mode 100644
index 0000000..7ce6361
--- /dev/null
+++ b/debian/patches/no-gcc-warnings.patch
@@ -0,0 +1,15 @@
+Index: trousers/configure.in
+===================================================================
+--- trousers.orig/configure.in 2012-11-25 16:10:45.294954888 +0000
++++ trousers/configure.in 2012-11-25 16:28:00.842138403 +0000
+@@ -357,10 +357,6 @@
+ AC_CHECK_HEADER(sys/byteorder.h, [AC_DEFINE(HAVE_BYTEORDER_H, 1, [sys/byteorder.h header])])
+ AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is available]) ])
+
+-if test "x${GCC}" = "xyes"; then
+- CFLAGS="$CFLAGS -W -Wall -Werror -Wno-unused-parameter -Wsign-compare"
+-fi
+-
+ CFLAGS="$CFLAGS -I../include \
+ -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \
+ -DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \