From fec88c0429e494ddfd42ea46a726942f17b31784 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Tue, 1 Jul 2008 17:33:21 +0000 Subject: [PATCH] Compilation with --enable-testing works by removing stdio.h git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1207 7f574dfc-610e-0410-a909-a81674777703 --- configure.ac.in | 4 ++-- src/conky.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index f173300a..1d43919f 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -623,7 +623,7 @@ AC_ARG_ENABLE([debug], [want_debug="$enableval"], [want_debug=no]) if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then - CFLAGS="$CFLAGS -g3 -Werror" + CFLAGS="$CFLAGS -g3" AC_DEFINE([DEBUG], [], [Define for debugging]) fi @@ -640,7 +640,7 @@ if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then CFLAGS="$CFLAGS -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic" AC_DEFINE([TESTING], [], [Define for testing (enables strict compiler flags)]) else - CFLAGS="$CFLAGS -g3 -Werror -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic" + CFLAGS="$CFLAGS -g3 -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic" AC_DEFINE([TESTING], [], [Define for testing (enables strict compiler flags)]) fi fi diff --git a/src/conky.h b/src/conky.h index 6ba8bf74..422eb805 100644 --- a/src/conky.h +++ b/src/conky.h @@ -43,7 +43,6 @@ #include "config.h" #include -#include #include #include #include