[LLVMbugs] [Bug 2719] New: [sema] missing warning on useless typedef

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Aug 24 17:28:24 PDT 2008


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

           Summary: [sema] missing warning on useless typedef
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


Useless typedefs probably produce a warning as they do in gcc:
--
ddunbar at ddunbar2:rt$ cat foo4.c
typedef struct S {
  int x;
};
ddunbar at ddunbar2:rt$ clang -fsyntax-only foo4.c
ddunbar at ddunbar2:rt$ gcc -fsyntax-only foo4.c
foo4.c:3: warning: useless storage class specifier in empty declaration
ddunbar at ddunbar2:rt$


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list