[PATCH] D122983: [C11/C2x] Change the behavior of the implicit function declaration warning

Jake Egan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 21 12:53:15 PDT 2022


Jake-Egan added a comment.

@aaron.ballman Here are all the errors. Thanks!

  MultiSource/Applications/d/write_ctables.c:600:6: error: call to undeclared library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/Prolangs-C/bison/conflicts.c:266:7: error: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/Prolangs-C/bison/symtab.c:65:3: error: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/Prolangs-C/bison/symtab.c:91:11: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:317:5: error: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/Ptrdist/yacr2/maze.c:316:5: error: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/nbench/nbench1.c:2920:1: error: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/MiBench/network-patricia/patricia.c:146:5: error: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/MiBench/network-patricia/patricia.c:150:5: error: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/MiBench/network-patricia/patricia.c:156:4: error: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/MiBench/network-patricia/patricia.c:297:4: error: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  MultiSource/Benchmarks/MiBench/network-patricia/patricia_test.c:100:2: error: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls.c:110:69: error: call to undeclared function 'ffsl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122983/new/

https://reviews.llvm.org/D122983



More information about the cfe-commits mailing list