- changed status to resolved
GenericGraph warnings
Issue #76
resolved
CompileC build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/Objects-normal/x86_64/GenericGraph.o gtsam_unstable/partition/GenericGraph.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/frank/borg/gtsam
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -Dgtsam_unstable_EXPORTS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -Wno-sign-conversion -I/Users/frank/borg/gtsam/build2/gtsam_unstable/Debug/include -I/Users/frank/borg/gtsam/CppUnitLite -I/Users/frank/borg/gtsam/build2 -I/Users/frank/borg/gtsam -I/Users/frank/borg/gtsam/gtsam/3rdparty/metis-5.1.0/GKlib -I/Users/frank/borg/gtsam/gtsam/3rdparty/metis-5.1.0/libmetis -I/Users/frank/borg/gtsam/gtsam/3rdparty/metis-5.1.0/include -I/Users/frank/borg/gtsam/gtsam/3rdparty/CCOLAMD/Include -I/Users/frank/borg/gtsam/gtsam/3rdparty/UFconfig -I/opt/local/include -I/Users/frank/borg/gtsam/build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/DerivedSources/x86_64 -I/Users/frank/borg/gtsam/build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/frank/borg/gtsam/build2/gtsam_unstable/Debug -fno-inline -Wall -fPIC -ftemplate-depth=1024 -MMD -MT dependencies -MF /Users/frank/borg/gtsam/build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/Objects-normal/x86_64/GenericGraph.d --serialize-diagnostics /Users/frank/borg/gtsam/build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/Objects-normal/x86_64/GenericGraph.dia -c /Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp -o /Users/frank/borg/gtsam/build2/gtsam_unstable/GTSAM.build/Debug/gtsam_unstable.build/Objects-normal/x86_64/GenericGraph.o
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:32:7: warning: unused variable 'numNodes' [-Wunused-variable]
int numNodes = keys.size();
^
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:36:10: warning: unused variable 'i' [-Wunused-variable]
size_t i, nrFactors = factors.size();
^
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:138:10: warning: unused variable 'i' [-Wunused-variable]
size_t i, nrFactors = factors.size();
^
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:472:70: warning: adding 'size_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
throw runtime_error("checkSingularity:minConstraintsPerCamera < " + minFoundConstraintsPerCamera);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:472:70: note: use array indexing to silence this warning
throw runtime_error("checkSingularity:minConstraintsPerCamera < " + minFoundConstraintsPerCamera);
^
& [ ]
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:474:72: warning: adding 'size_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
throw runtime_error("checkSingularity:minConstraintsPerLandmark < " + minFoundConstraintsPerLandmark);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/frank/borg/gtsam/gtsam_unstable/partition/GenericGraph.cpp:474:72: note: use array indexing to silence this warning
throw runtime_error("checkSingularity:minConstraintsPerLandmark < " + minFoundConstraintsPerLandmark);
^
& [ ]
5 warnings generated.
Comments (1)
-
- Log in to comment
Fixed, as well as additional signed vs unsigned comparison warnings