[LLVMbugs] [Bug 21985] Add Clang warning for register qulifiers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 19 10:46:58 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21985
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rnk at google.com
Resolution|--- |WORKSFORME
--- Comment #1 from Reid Kleckner <rnk at google.com> ---
It's under -Wdeprecated-register, and it's on by default:
$ cat t.cpp
void use(int);
int main() {
register int a = 42;
use(a);
}
$ clang -c t.cpp
t.cpp:3:3: warning: 'register' storage class specifier is deprecated
[-Wdeprecated-register]
register int a = 42;
^~~~~~~~~
1 warning generated.
--
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/20141219/24390a34/attachment.html>
More information about the llvm-bugs
mailing list