Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Graf
eed0cadf35 tmp 2014-08-25 00:20:33 +02:00
Thomas Graf
13cf9440c4 build: fail CI builds if a new warning is introduced
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25 00:19:54 +02:00
3 changed files with 11 additions and 1 deletions

View File

@ -7,4 +7,4 @@ before_install:
- sudo apt-get install libnl-3-dev libnl-route-3-dev
- sudo apt-get install libncurses-dev
# Change this to your needs
script: ./autogen.sh && ./configure && make
script: ./.travis/run.sh

9
.travis/run.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
FLAGS="-Werror"
if [ $CC = "clang" ]; then
FLAGS="$FLAGS -Wno-error=unused-command-line-argument"
fi
./autogen.sh && ./configure && make CFLAGS="$FLAGS"

View File

@ -269,6 +269,7 @@ int main(int argc, char *argv[])
{
unsigned long sleep_time;
double read_interval;
int unused;
start_time = time(0);
memset(&rtiming, 0, sizeof(rtiming));