-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I receive this error when building off master ( e8965f7 )
FAILED: CMakeFiles/insights.dir/FunctionDeclHandler.cpp.o
ccache /usr/bin/c++ -I/usr/local/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04/include -I/tmp/cppinsights/. -Igenerated -isystem/usr/local/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++1z -Wextra -Wold-style-cast -Werror -Wsuggest-override -Wuseless-cast -Wno-overloaded-virtual -MD -MT CMakeFiles/insights.dir/FunctionDeclHandler.cpp.o -MF CMakeFiles/insights.dir/FunctionDeclHandler.cpp.o.d -o CMakeFiles/insights.dir/FunctionDeclHandler.cpp.o -c /tmp/cppinsights/FunctionDeclHandler.cpp
/tmp/cppinsights/FunctionDeclHandler.cpp: In member function ‘virtual void clang::insights::FunctionDeclHandler::run(const clang::ast_matchers::MatchFinder::MatchResult&)’:
/tmp/cppinsights/FunctionDeclHandler.cpp:105:28: error: unused variable ‘usingShadow’ [-Werror=unused-variable]
if(const auto* usingShadow = dyn_cast_or_null<ConstructorUsingShadowDecl>(shadow)) {
^~~~~~~~~~~
cc1plus: all warnings being treated as errors
To get around it I delete the variable declaration.
g++ --version
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I get this on 16.04 and 18.04
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working