]> git.ozlabs.org Git - ccan/commitdiff
.travis.yml: Enable C99 mode for older gcc versions
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 12:12:59 +0000 (23:12 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 12:12:59 +0000 (23:12 +1100)
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 <david@gibson.dropbear.id.au>
.travis.yml

index 34319bcb462d15e977f7c586ac6fc8e7a05644e3..fe44304d70bfe0b5033e8e30a59945b3591b0a72 100644 (file)
@@ -5,6 +5,9 @@ compiler:
   - gcc
   - clang
 
   - gcc
   - clang
 
+env:
+    - CFLAGS="-std=gnu99"
+
 script:
     - make -j2 -k quiet=1
     - make -k check quiet=1
 script:
     - make -j2 -k quiet=1
     - make -k check quiet=1