Open Quuxplusone opened 10 years ago
Bugzilla Link | PR19418 |
Status | NEW |
Importance | P normal |
Reported by | Thiago Farina (tfarina@chromium.org) |
Reported on | 2014-04-13 17:11:03 -0700 |
Last modified on | 2015-05-11 10:23:50 -0700 |
Version | unspecified |
Hardware | PC Linux |
CC | tfiala@google.com, vince@nethacker.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
We're mostly using clang these days.
It would be nice to fix these though, because we do need to build with gcc in
certain circumstances.
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
It looks like this one only pops up if there are other warnings in the file.
Strange.
$ cat ~/dev/main.cpp
int main() { return 0; }
$ /usr/bin/g++ -Wno-deprecated-declarations ~/dev/main.cpp
$
$ cd /usr/local/google/home/vharron/ll/tot/eclipse/gcc/tools/lldb/tools/driver
&& /usr/bin/g++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLIBXML2_DEFINED -D_DEBUG -
D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -
D__STDC_LIMIT_MACROS -fuse-ld=gold -fPIC -fvisibility-inlines-hidden -Wall -W -
Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-
initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -
std=c++11 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-deprecated-
register -fno-exceptions -fno-rtti -g -
I/usr/local/google/home/vharron/ll/tot/eclipse/gcc/tools/lldb/tools/driver -
I/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/tools/driver -
I/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/include -
I/usr/local/google/home/vharron/ll/tot/eclipse/gcc/tools/lldb/include -
I/usr/local/google/home/vharron/ll/tot/eclipse/gcc/include -
I/usr/local/google/home/vharron/ll/tot/llvm/include -I/usr/include/python2.7 -
I/usr/include/x86_64-linux-gnu/python2.7 -
I/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/../clang/include -
I/usr/local/google/home/vharron/ll/tot/eclipse/gcc/tools/lldb/../clang/include -
I/usr/include/libxml2 -fno-exceptions -fno-rtti -o
CMakeFiles/lldb.dir/Driver.cpp.o -c
/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/tools/driver/Driver.cpp
/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/tools/driver/Driver.cpp:
In function ‘FILE* PrepareCommandsForSourcing(const char*, size_t, int*)’:
/usr/local/google/home/vharron/ll/tot/llvm/tools/lldb/tools/driver/Driver.cpp:870:10:
warning: variable ‘success’ set but not used [-Wunused-but-set-variable]
bool success = true;
^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
$
(fix the warning and it goes away)