Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
eed0cadf35 | |||
13cf9440c4 |
@ -7,4 +7,4 @@ before_install:
|
|||||||
- sudo apt-get install libnl-3-dev libnl-route-3-dev
|
- sudo apt-get install libnl-3-dev libnl-route-3-dev
|
||||||
- sudo apt-get install libncurses-dev
|
- sudo apt-get install libncurses-dev
|
||||||
# Change this to your needs
|
# Change this to your needs
|
||||||
script: ./autogen.sh && ./configure && make
|
script: ./.travis/run.sh
|
||||||
|
9
.travis/run.sh
Executable file
9
.travis/run.sh
Executable 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"
|
@ -269,6 +269,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
unsigned long sleep_time;
|
unsigned long sleep_time;
|
||||||
double read_interval;
|
double read_interval;
|
||||||
|
int unused;
|
||||||
|
|
||||||
start_time = time(0);
|
start_time = time(0);
|
||||||
memset(&rtiming, 0, sizeof(rtiming));
|
memset(&rtiming, 0, sizeof(rtiming));
|
||||||
|
Reference in New Issue
Block a user