[llvm-bugs] [Bug 24376] New: -Wall flag position should not matter
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 6 06:09:32 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24376
Bug ID: 24376
Summary: -Wall flag position should not matter
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: j2jey at hotmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Here is a small example
int main(){
int a;
return 0;
}
I compile it with
clang++ -Wall -W -Werror -Wno-error=unused-variable main.cpp
And I have the expected warning.
Now If I compile with:
clang++ -W -Werror -Wno-error=unused-variable -Wall main.cpp
It triggers an error, so it seems like the position of Wall changes the
behavior, which I think is not expected.
http://stackoverflow.com/questions/31855216/clang-w-flag-order
--
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/20150806/6a176e5f/attachment.html>
More information about the llvm-bugs
mailing list