<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Warning for 'register' is too noisy"
   href="http://llvm.org/bugs/show_bug.cgi?id=16336">16336</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Warning for 'register' is too noisy
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>steveire@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>