Skip to content

Commit

Permalink
Add -Wno-implicit-function-declaration to a few places to work w D122983
Browse files Browse the repository at this point in the history
D122983 intends to make these cases a 'warning as error' in C11 and C17
modes, and an attempt to set these to C99 mode caused more failures due
to included-files no longer containing certain symbols.  This patch just
adds the warning-opt-out to the tests that matter.  See
https://reviews.llvm.org/D122983 for details.

Differential Revision: https://reviews.llvm.org/D123241
  • Loading branch information
Erich Keane committed Apr 7, 2022
1 parent 1b938dc commit a87f4e4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MultiSource/Applications/siod/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
list(APPEND CPPFLAGS -D__USE_MISC -D__USE_GNU -D__USE_SVID -D__USE_XOPEN_EXTENDED -D__USE_XOPEN -Dunix)
list(APPEND CPPFLAGS -D__USE_MISC -D__USE_GNU -D__USE_SVID -D__USE_XOPEN_EXTENDED -D__USE_XOPEN -Dunix -Wno-implicit-function-declaration)
list(APPEND LDFLAGS -lm)
set(RUN_OPTIONS -v1 test.scm)
llvm_multisource(siod)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
list(APPEND CPPFLAGS -Dconst=)
list(APPEND CPPFLAGS -Wno-implicit-function-declaration -Dconst=)
list(APPEND LDFLAGS -lm)
set(RUN_OPTIONS -a -d americanmed+ < large.txt)
llvm_multisource(office-ispell)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include(CheckFunctionExists)
list(APPEND CPPFLAGS -Wno-implicit-function-declaration)
check_function_exists(re_comp HAVE_RE_COMP)

if(HAVE_RE_COMP)
Expand Down
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include(CheckFunctionExists)
check_function_exists(re_comp HAVE_RE_COMP)
list(APPEND CPPFLAGS -Wno-implicit-function-declaration)
if(HAVE_RE_COMP)
list(APPEND LDFLAGS -lm)
llvm_multisource(plot2fig)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_subdirectory(ieee)

# GCC C Torture Suite is conventionally run without warnings
list(APPEND CFLAGS "-w")
list(APPEND CFLAGS -Wno-implicit-function-declaration -w)

set(TestsToSkip)

Expand Down

0 comments on commit a87f4e4

Please sign in to comment.