[LLVMbugs] [Bug 20796] New: GCC's -Wstrict-prototypes warning not implemented in Clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 28 21:38:37 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20796

            Bug ID: 20796
           Summary: GCC's -Wstrict-prototypes warning not implemented in
                    Clang
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mseaborn at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

"-Wstrict-prototypes" appears to be a no-op in Clang.

$ cat strict_protos.c
void foo() {
}

$ gcc -c strict_protos.c -Wstrict-prototypes
strict_protos.c:2:6: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 void foo() {
      ^

Using Chromium's build of Clang:

$ .../third_party/llvm-build/Release+Asserts/bin/clang -c strict_protos.c
-Wstrict-prototypes
$ .../third_party/llvm-build/Release+Asserts/bin/clang --version
clang version 3.5.0 (trunk 209387)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140829/e78c2e7f/attachment.html>


More information about the llvm-bugs mailing list