[llvm-bugs] [Bug 43568] New: -Wall is interpreted as -Weverything in the windows driver
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 4 12:23:29 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43568
Bug ID: 43568
Summary: -Wall is interpreted as -Weverything in the windows
driver
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: zahira.ammarguellat at intel.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
ksh-3.2$ cat t.cpp
constexpr int const_expr = 0;
ksh-3.2$
ksh-3.2$ clang-cl -c -Wall t.cpp
t.cpp(1,1): warning: 'constexpr' specifier is incompatible with C++98
[-Wc++98-compat]
constexpr int const_expr = 0;
^
t.cpp(1,15): warning: unused variable 'const_expr' [-Wunused-const-variable]
constexpr int const_expr = 0;
^
2 warnings generated.
ksh-3.2$
ksh-3.2$ clang -c -Wall -### t.cpp
....
"clang-cl.EXE" "-cc1" "-triple" "x86_64-pc-windows-msvc19.15.26726" "-emit-obj"
"-mrelax-all" "-mincremental-linker-compatible" "-disable-free"
"-main-file-name" "t.cpp" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-mframe-pointer=none" "-relaxed-aliasing"
"-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables"
"-target-cpu" "x86-64" "-mllvm" "-x86-asm-syntax=intel" "-D_MT"
"-flto-visibility-public-std" "--dependent-lib=libcmt"
"--dependent-lib=oldnames" "-stack-protector" "2" "-fms-volatile"
"-fdiagnostics-format" "msvc" "-dwarf-column-info" "-resource-dir"
"-Weverything" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "0"
"-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility"
"-fms-compatibility-version=19.15.26726" "-std=c++14"
"-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-faddrsig" "-o" "t.obj" "-x" "c++" "t.cpp"
Shouldn't -Wall be translated to -Wall instead of -Weverything.
--
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/20191004/a4b4d29a/attachment.html>
More information about the llvm-bugs
mailing list