diff --git a/configure.ac b/configure.ac index 1ce3282..3fe24a0 100644 --- a/configure.ac +++ b/configure.ac @@ -77,7 +77,6 @@ PKG_PROG_PKG_CONFIG # args. Global CPPFLAGS are ignored during this test. cc_supports_flag() { saveCPPFLAGS="$CPPFLAGS" - CPPFLAGS="-Werror $@" AC_MSG_CHECKING([whether $CC supports "$@"]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [RC=0; AC_MSG_RESULT([yes])], @@ -96,7 +95,7 @@ else GDB_CFLAGS="-g" fi -DEFAULT_CFLAGS="-Werror -Wall -Wextra" +DEFAULT_CFLAGS="" # manual overrides # generates too much noise for stub APIs diff --git a/main.c b/main.c index 6c03ccf..874d39c 100644 --- a/main.c +++ b/main.c @@ -1,11 +1,20 @@ #include #include "config.h" + +void test(int var) +{ + int a=var; + printf("test %d\n", a); +} + int main(void) { int ret = 0; +// int testvar; - printf("Hello World without knet!\n"); + printf("Hello World without knet\n"); +// test(testvar); return ret; } diff --git a/testrun.sh b/testrun.sh index 4338708..1862597 100755 --- a/testrun.sh +++ b/testrun.sh @@ -1,3 +1,10 @@ #!/bin/sh echo "Test message 1 from cmdlib" + +# TEST - fail only on Debian +if [ -f /etc/debian_version ] +then + exit 1 +fi + exit 0