[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


            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

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
      ({ register __uint64_t __v, __x = (x);                                  \
In file included from
In file included from

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