[LLVMbugs] [Bug 16336] New: Warning for 'register' is too noisy
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 15 02:21:14 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16336
Bug ID: 16336
Summary: Warning for 'register' is too noisy
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: steveire at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
It seems that it is used in common system headers. There should probably at
least be a standalone flag to disable it like -Wno-register
:
/home/stephen/dev/build/qtbase-stable/qtbase-stable/include/QtCore/../../../../../src/qtbase-stable/src/corelib/global/qendian.h:290:12:
warning: 'register' storage class specifier is deprecated [-Wdeprecated]
return bswap_64(source);
^
/usr/include/byteswap.h:38:22: note: expanded from macro 'bswap_64'
# define bswap_64(x) __bswap_64 (x)
^
/usr/include/x86_64-linux-gnu/bits/byteswap.h:116:10: note: expanded from macro
'__bswap_64'
({ register __uint64_t __v, __x = (x); \
^
In file included from
/home/stephen/dev/src/qtbase-stable/src/corelib/codecs/qutfcodec.cpp:44:
In file included from
/home/stephen/dev/build/qtbase-stable/qtbase-stable/include/QtCore/qendian.h:1:
--
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/20130615/b55bc27d/attachment.html>
More information about the llvm-bugs
mailing list