]> granicus.if.org Git - clang/commit
Put ext_implicit_lib_function_decl in ImplicitFunctionDeclare.
authorEd Schouten <ed@nuxi.nl>
Fri, 4 Sep 2015 16:07:39 +0000 (16:07 +0000)
committerEd Schouten <ed@nuxi.nl>
Fri, 4 Sep 2015 16:07:39 +0000 (16:07 +0000)
commit93885ee97cd4a65cc773a654cb2d15b2890c81a2
treed2f0c87e62d6b2d2b56347f58a71f03cad8f69cc
parentf08b591b3f1f0b94def63bf4bda3af6d071ac7b7
Put ext_implicit_lib_function_decl in ImplicitFunctionDeclare.

If we build with -Werror=implicit-function-declaration, only implicit
function declarations of non-library functions throw compiler errors.
For library functions, we only produce a warning. There is no way to
promote both of these cases to an error without promoting other
warnings.

It makes little sense to introduce an additional compiler flag just to
control this specific warning. In my opinion it should just be part of
the same group.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246857 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
test/Driver/implicit-function-as-error.c
test/Misc/warning-flags.c