Bug ID: 41183
           Summary: Implicit function declarations also trigger
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend


    int main() { return f(); }

with -Weverything triggers both -Wimplicit-function-declaration and

    example.c:1:21: warning: implicit declaration of function 'f' is invalid in
C99 [-Wimplicit-function-declaration]
    int main() { return f(); }
    example.c:1:21: warning: this function declaration is not a prototype
    2 warnings generated.

This seems redundant – implicit function declarations will never be prototypes.

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to