From 18cbdae86fd7d387a625f1140b8288ed634658e1 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 23 Nov 2016 23:12:59 +1100 Subject: [PATCH 1/1] .travis.yml: Enable C99 mode for older gcc versions Currently Travis builds fail on the edit_distance module, because that module uses C99 extensions, which aren't enabled by default on the Ubuntu Precise compiler version. Force it to allow these, by adding the -std=gnu99 option to the compiler. Signed-off-by: David Gibson --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 34319bcb..fe44304d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,9 @@ compiler: - gcc - clang +env: + - CFLAGS="-std=gnu99" + script: - make -j2 -k quiet=1 - make -k check quiet=1 -- 2.39.2