[lldb-dev] [Bug 19418] lots of warnings when building lldb
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 11 08:23:50 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=19418
Vince Harron <vince at nethacker.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vince at nethacker.com
Assignee|lldb-dev at cs.uiuc.edu |vince at nethacker.com
--- Comment #1 from Vince Harron <vince at nethacker.com> ---
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)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150511/3d5cf7ae/attachment.html>
More information about the lldb-dev
mailing list