<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - -Wformat warnings for integer widening are too strict"
   href="https://bugs.llvm.org/show_bug.cgi?id=41467">41467</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wformat warnings for integer widening are too strict
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ndesaulniers@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, srhines@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From this LKML discussion: <a href="https://lkml.org/lkml/2019/4/11/639">https://lkml.org/lkml/2019/4/11/639</a>.

Simple patches for fixing -Wformat warnings in the Linux kernel are getting
rejected in cases where they warn about the format of a shorter integer using a
larger integer's format flag in cases where the shorter integer would undergo
standard C integer promotion when passed to printf-like functions.

This is making it difficult to enable a warning that generally helps catch more
nonsensical conversions.  Is there maybe a way to create another -Wformat-less
strict flag that doesn't warn for integer widening like -Wformat, or create
-Wformat-pedantic which does warn on integer widening and remove warning on
that case in -Wformat?

<a href="https://github.com/ClangBuiltLinux/linux/issues/378">https://github.com/ClangBuiltLinux/linux/issues/378</a></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>