From: David Gibson Date: Wed, 23 Nov 2016 12:12:59 +0000 (+1100) Subject: .travis.yml: Enable C99 mode for older gcc versions X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=18cbdae86fd7d387a625f1140b8288ed634658e1;ds=sidebyside .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 --- 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