<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 - clang warning: unknown warning option '-Wno-old-style-declaration'"
   href="https://bugs.llvm.org/show_bug.cgi?id=40616">40616</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang warning: unknown warning option '-Wno-old-style-declaration'
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0
          </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>-New Bugs
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>OVERVIEW:

There seems to be problem with clang and warning option
'-Wno-old-style-declaration'.


    testaccount@testmachine:~$ uname -a
    Linux testmachine 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux

    testaccount@testmachine:~$ clang-7 -v
    clang version 7.0.0-3~ubuntu0.18.04.1 (tags/RELEASE_700/final)
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/8
    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
    Found candidate GCC installation:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
    Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
    Candidate multilib: .;@m64
    Selected multilib: .;@m64



STEP TO REPRODUCE:

    testaccount@testmachine:~$ echo "__clang__ __GNUC__ __GNUC_MINOR__
__GNUC_PATCHLEVEL__ __clang_major__ __clang_minor__ __clang_patchlevel__" |
/usr/bin/clang-7 -E -P -Wno-old-style-declaration -
    warning: unknown warning option '-Wno-old-style-declaration'; did you mean
'-Wno-out-of-line-declaration'? [-Wunknown-warning-option]
    1 4 2 1 7 0 0
    1 warning generated.


ADDITIONAL INFOS:

This issue also appears on clang-5 and clang-6.  
GCC (>=4.3) does not have this problem however.</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>