[PATCH] D36669: Build LLVM with -Wstrict-prototypes enabled

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 08:19:02 PDT 2017


Should this be part of -Wextra?

> On Aug 14, 2017, at 04:13, Alex Lorenz via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> arphaman created this revision.
> Herald added a subscriber: mgorny.
> 
> Clang 5 supports -Wstrict-prototypes. We should use it to catch any C declarations that declare a non-prototype function.
> 
> 
> Repository:
>  rL LLVM
> 
> https://reviews.llvm.org/D36669
> 
> Files:
>  cmake/modules/HandleLLVMOptions.cmake
>  projects/compiler-rt/lib/profile/GCDAProfiling.c
>  projects/compiler-rt/lib/profile/InstrProfiling.h
>  projects/compiler-rt/lib/profile/InstrProfilingFile.c
>  projects/compiler-rt/lib/profile/InstrProfilingInternal.h
>  projects/compiler-rt/lib/profile/InstrProfilingUtil.h
>  projects/libunwind/src/config.h
>  projects/libunwind/src/unwind_ext.h
> 
> <D36669.110939.patch>



More information about the llvm-commits mailing list