Skip to content

Commit

Permalink
{eloquent} plansys2-problem-expert: ignore return-type errors with we…
Browse files Browse the repository at this point in the history
…bOS OSE

* fixes:
/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/recipe-sysroot-native/usr/bin/i586-webos-linux/i586-webos-linux-g++  -Dplansys2_problem_expert_EXPORTS -I/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/git/include -m32 -march=i586 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type  --sysroot=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0=/usr/src/debug/plansys2-problem-expert/0.0.5-1-r0                      -fdebug-prefix-map=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0=/usr/src/debug/plansys2-problem-expert/0.0.5-1-r0                      -fdebug-prefix-map=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/recipe-sysroot=                      -fdebug-prefix-map=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden   -m32 -march=i586 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type  --sysroot=/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/recipe-sysroot -g -fPIC   -std=gnu++17 -MD -MT CMakeFiles/plansys2_problem_expert.dir/src/plansys2_problem_expert/ProblemExpert.cpp.o -MF CMakeFiles/plansys2_problem_expert.dir/src/plansys2_problem_expert/ProblemExpert.cpp.o.d -o CMakeFiles/plansys2_problem_expert.dir/src/plansys2_problem_expert/ProblemExpert.cpp.o -c /jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/git/src/plansys2_problem_expert/ProblemExpert.cpp
/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/git/src/plansys2_problem_expert/ProblemExpert.cpp: In member function 'bool plansys2::ProblemExpert::checkPredicateTreeTypes(std::shared_ptr<plansys2::TreeNode>, std::shared_ptr<plansys2::DomainExpert>&)':
/jenkins/mjansa/build-ros/webos-eloquent-warrior/tmp-glibc/work/qemux86-webos-linux/plansys2-problem-expert/0.0.5-1-r0/git/src/plansys2_problem_expert/ProblemExpert.cpp:273:23: error: control reaches end of non-void function [-Werror=return-type]
         node->toString() << "]" << std::endl;
         ~~~~~~~~~~~~~~^~
cc1plus: some warnings being treated as errors

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project committed Jul 1, 2020
1 parent da93ae7 commit da7a3d5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2020 LG Electronics, Inc.

# Fails with webOS OSE which by default uses -Werror=return-type
# plansys2-problem-expert/0.0.5-1-r0/git/src/plansys2_problem_expert/ProblemExpert.cpp:273:23: error: control reaches end of non-void function [-Werror=return-type]
# node->toString() << "]" << std::endl;
# ~~~~~~~~~~~~~~^~
CXXFLAGS += "-Wno-error=return-type"

0 comments on commit da7a3d5

Please sign in to comment.