<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:pinskia@gcc.gnu.org" title="Andrew Pinski <pinskia@gcc.gnu.org>"> <span class="fn">Andrew Pinski</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - bogus "format string is not a string literal" warnings"
   href="http://llvm.org/bugs/show_bug.cgi?id=22701">bug 22701</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>pinskia@gcc.gnu.org
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - bogus "format string is not a string literal" warnings"
   href="http://llvm.org/bugs/show_bug.cgi?id=22701#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - bogus "format string is not a string literal" warnings"
   href="http://llvm.org/bugs/show_bug.cgi?id=22701">bug 22701</a>
              from <span class="vcard"><a class="email" href="mailto:pinskia@gcc.gnu.org" title="Andrew Pinski <pinskia@gcc.gnu.org>"> <span class="fn">Andrew Pinski</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=22701#c7">comment #7</a>)
<span class="quote">> 
> This is *precisely* the problem that -Wformat-nonliteral is supposed to
> detect -- your format string is not a string literal -- so, no, this is the
> right flag. GCC's warning is broken and fails to fire in this case; that's
> their bug, not ours.</span >

Where is -Wformat-nonliteral documented?  Because GCC documents it as:
-Wformat-nonliteral
If -Wformat is specified, also warn if the format string is not a string
literal and so cannot be checked, unless the format function takes its format
arguments as a va_list. 

Notice the last part of the sentence; this conflicts with the way clang
implements this warning.  I can't seem to find clang's documentation for half
of the options that clang implemented in the user guide.</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>