[LLVMbugs] [Bug 6361] Clang complains about redeclaring function with a calling convention

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 14:13:44 PST 2010


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

Charles Davis <cdavis at mymail.mines.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cdavis at mymail.mines.edu,
                   |                            |llvmbugs at cs.uiuc.edu
          Component|-New Bugs                   |Semantic Analyzer
            Summary|Clang doesn't have a        |Clang complains about
                   |warning flag for warning:   |redeclaring function with a
                   |attribute declaration must  |calling convention
                   |precede definition          |

--- Comment #1 from Charles Davis <cdavis at mymail.mines.edu> 2010-02-21 16:13:44 CST ---
Like I was saying on IRC, the real bug is not that there's no flag controlling
this, but that clang is warning at all.

The __cdecl calling convention is the default, so clang should not be warning
when a function declared without a calling convention is redeclared as cdecl
(or whatever the default is).

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



More information about the llvm-bugs mailing list