Skip to content

Commit

Permalink
Make the C tests fail with -Wstrict-prototypes
Browse files Browse the repository at this point in the history
Set CCFLAGS to -Werro -Wstrict-prototypes so that gcc fails in case a
function is declared or defined without specifying the argument types.
This serves as a regression test for pull request #185.
  • Loading branch information
gdetrez committed Sep 9, 2016
1 parent 3ba626c commit 7a641d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testing/src/ParameterizedTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ parameters =
, tpBnfcOptions = ["--ocaml", "-m"] }
-- C
, cBase { tpName = "C"
, tpBuild = run_ "make" ["CCFLAGS=-Wstrict-prototypes -Werror"]
, tpBnfcOptions = ["--c", "-m"] }
-- C++
, cBase { tpName = "C++"
Expand Down

0 comments on commit 7a641d7

Please sign in to comment.