[llvm-bugs] [Bug 40616] New: clang warning: unknown warning option '-Wno-old-style-declaration'

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 5 11:32:43 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40616

            Bug ID: 40616
           Summary: clang warning: unknown warning option
                    '-Wno-old-style-declaration'
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: trankimthang279 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

OVERVIEW:

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


    testaccount at 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 at 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 at 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.

-- 
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/20190205/9dc92cd1/attachment.html>


More information about the llvm-bugs mailing list