]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fix failing test
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 30 Oct 2015 12:45:41 +0000 (13:45 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 30 Oct 2015 12:48:53 +0000 (13:48 +0100)
GCC 5.2.1 no longer produces the warning that was used in this test.

tests/headers-generated-default-cflags
tests/headers-generated.files

index b4b33b07709322c02860b9e71eb801c14210d136..bfd86bbec5890fc48b9e26960fe24c0fe3e12b3f 100755 (executable)
@@ -12,4 +12,3 @@ LC_MESSAGES=C
 export LC_MESSAGES
 set -o pipefail
 make 2>&1 | tee stderr || error make
 export LC_MESSAGES
 set -o pipefail
 make 2>&1 | tee stderr || error make
-grep "control reaches end of non-void function" stderr || error "Default CFLAGS are not applied or no GCC is used"
index e6a4b987be9a9ee286270e3166ee004cbea57dd0..9486e59d2b8066162a9b555512b0b2a156c5e3e8 100644 (file)
@@ -118,7 +118,7 @@ cat > 'lincan/configtest.c' <<'EOF'
 
 int main(void) 
 {
 
 int main(void) 
 {
-    /* With default CFLAGS a warning should be produced: control reaches end of non-void function */
+    return 0;
 }
 EOF
 cat > 'lincan/Makefile.omk' <<'EOF'
 }
 EOF
 cat > 'lincan/Makefile.omk' <<'EOF'