DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

Warnings to remove in GreedySegmentation #200

Closed dcoeurjo closed 13 years ago

dcoeurjo commented 13 years ago

[ 13%] Building CXX object tests/kernel/CMakeFiles/testDGtalGMP.dir/testDGtalGMP.cpp.o In file included from /home/dcoeurjo/Sources/DGtal/tests/kernel/testDGtalGMP.cpp:37:0: /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GreedySegmentation.h:318:34: warning: type qualifiers ignored on function return type /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GreedySegmentation.h:324:38: warning: type qualifiers ignored on function return type In file included from /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GreedySegmentation.h:519:0, from /home/dcoeurjo/Sources/DGtal/tests/kernel/testDGtalGMP.cpp:37: /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GreedySegmentation.ih:303:87: warning: type qualifiers ignored on function return type /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GreedySegmentation.ih:311:91: warning: type qualifiers ignored on function return type

dcoeurjo commented 13 years ago

And MaximalSegments:

[ 35%] Building CXX object tests/geometry/2d/CMakeFiles/testTrueLocalEstimator.dir/testTrueLocalEstimator.cpp.o In file included from /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MostCenteredMaximalSegmentEstimator.h:47:0, from /home/dcoeurjo/Sources/DGtal/tests/geometry/2d/testTrueLocalEstimator.cpp:45: /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MaximalSegments.h:241:34: warning: type qualifiers ignored on function return type /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MaximalSegments.h:247:38: warning: type qualifiers ignored on function return type In file included from /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MaximalSegments.h:482:0, from /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MostCenteredMaximalSegmentEstimator.h:47, from /home/dcoeurjo/Sources/DGtal/tests/geometry/2d/testTrueLocalEstimator.cpp:45: /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MaximalSegments.ih:409:80: warning: type qualifiers ignored on function return type /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/MaximalSegments.ih:421:84: warning: type qualifiers ignored on function return type

dcoeurjo commented 13 years ago

In GridCurve:

/home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GridCurve.ih: In instantiation of ‘DGtal::DrawableWithBoard2D* DGtal::GridCurve::defaultStyle(std::string) const [with TKSpace = DGtal::KhalimskySpaceND<2u, int>, std::string = std::basic_string]’: /home/dcoeurjo/Sources/DGtal/src/DGtal/io/boards/Board2D.ih:70:64: instantiated from ‘DGtal::Board2D& DGtal::Board2D::operator<<(const TDrawableWithBoard2D&) [with TDrawableWithBoard2D = DGtal::GridCurve<DGtal::KhalimskySpaceND<2u, int> >]’ /home/dcoeurjo/Sources/DGtal/tests/geometry/nd/testGaussDigitizer.cpp:102:3: instantiated from ‘bool testDigitization(const Shape&, double, const std::string&) [with Space = DGtal::SpaceND<2u, int>, Shape = DGtal::Ellipse2D<DGtal::SpaceND<2u, int> >, std::string = std::basic_string]’ /home/dcoeurjo/Sources/DGtal/tests/geometry/nd/testGaussDigitizer.cpp:133:39: instantiated from here /home/dcoeurjo/Sources/DGtal/src/DGtal/geometry/2d/GridCurve.ih:247:1: warning: unused parameter ‘mode’

troussil commented 13 years ago

What warning option do you use ? I did not see them with -Wall.

dcoeurjo commented 13 years ago

build-type "Debug" in cmake

dcoeurjo commented 13 years ago

seems to be ok