Boost logo

Geometry :

Subject: [ggl] warnings reported by Clang
From: Vishnu (vrang3)
Date: 2011-05-10 04:45:05


There are some warnings reported by Clang on linux64 with gcc 4.2.4. The
warnings show up in the boost-geometry-0.9.0 header files. All warnings are
due to uninitialized arguments.

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:35:
warning: variable 'st' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:25:
warning: variable 'sp' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
                        ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:13:
warning: variable 'str' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
            ^~~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:25:
warning: variable 'sp' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
                        ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:13:
warning: variable 'str' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
            ^~~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:35:
warning: variable 'st' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
                                  ^~
/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:13:
warning: variable 'str' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
            ^~~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:29:
warning: variable 'sp' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                            ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:39:
warning: variable 'st' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                                      ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:25:
warning: variable 'p' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                        ^
/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:25:
warning: variable 'sp' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
                        ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:13:
warning: variable 'str' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
            ^~~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/area_concept.hpp:46:35:
warning: variable 'st' is uninitialized when used here [-Wuninitialized]
            str->apply(*sp, *sp, *st);
                                  ^~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:39:
warning: variable 'st' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                                      ^~
/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:25:
warning: variable 'p' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                        ^

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:13:
warning: variable 'str' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
            ^~~

/usr/devsrc/boost_1_46_1/boost/geometry/strategies/concepts/within_concept.hpp:51:29:
warning: variable 'sp' is uninitialized when used here [-Wuninitialized]
            str->apply(*p, *sp, *sp, *st);
                            ^~

--
View this message in context: http://boost-geometry.203548.n3.nabble.com/warnings-reported-by-Clang-tp2921152p2921152.html
Sent from the Boost Geometry mailing list archive at Nabble.com.

Geometry list run by mateusz at loskot.net