Boost logo

Boost Users :

Subject: Re: [Boost-users] [release] Boost 1.68.0 Beta 1 -> warnings in gil, locale, geometry, asio, ublas, interprocess, atomic
From: Frédéric (ufospoke_at_[hidden])
Date: 2018-07-29 08:21:37


Here are some more warnings while using the libraries:

* gil:

boost/gil/extension/toolbox/image_types/indexed_image.hpp:190:5:
warning: les qualificatifs de type sont ignorés sur le type retourné
par la fonction [-Wignored-qualifiers]
     const std::size_t num_colors() const { return _num_colors; }
     ^~~~~

boost/gil/extension/dynamic_image/any_image_view.hpp:41:63: warning:
unused parameter 'v' [-Wunused-parameter]
        template <typename T> result_type operator()(const T& v) const
{ return num_channels<T>::value; }

boost/gil/extension/dynamic_image/algorithm.hpp:147:70: warning:
unused parameter 'src' [-Wunused-parameter]
    template <typename V, typename Value> static void apply(const V&
src, const Value& val) { throw std::bad_cast();}
                                                                     ^
boost/gil/extension/dynamic_image/algorithm.hpp:147:88: warning:
unused parameter 'val' [-Wunused-parameter]
    template <typename V, typename Value> static void apply(const V&
src, const Value& val) { throw std::bad_cast();}

                ^
boost/gil/extension/dynamic_image/image_view_factory.hpp:178:140:
warning: unused parameter 'cc' [-Wunused-parameter]
typename color_converted_view_type<any_image_view<ViewTypes>, DstP,
CC>::type color_converted_view(const any_image_view<ViewTypes>& src,CC
cc) {~

                                                                    ^
boost/gil/extension/dynamic_image/image_view_factory.hpp:201:144:
warning: unused parameter 'cc' [-Wunused-parameter]
typename color_converted_view_type<any_image_view<ViewTypes>, DstP,
CC>::type any_color_converted_view(const any_image_view<ViewTypes>&
src,CC cc) {~

 ^
boost/gil/io/device.hpp:446:31: warning: unused parameter 'data'
[-Wunused-parameter]
    void write( const byte_t* data
                              ^
boost/gil/io/device.hpp:447:31: warning: unused parameter 'count'
[-Wunused-parameter]
              , std::size_t count )
                              ^
boost/gil/io/device.hpp:471:35: warning: unused parameter 'data'
[-Wunused-parameter]
    std::size_t read( byte_t* data
                                  ^
boost/gil/io/device.hpp:472:35: warning: unused parameter 'count'
[-Wunused-parameter]
                    , std::size_t count )
                                  ^

* locale:

boost/locale/utf.hpp:224:17: warning: cette instruction peut
poursuivre son chemin [-Wimplicit-fallthrough=]
                 c = (c << 6) | ( tmp & 0x3F);
                 ^
boost/locale/utf.hpp:225:13: note: ici
             case 2:
             ^~~~
boost/locale/utf.hpp:231:17: warning: cette instruction peut
poursuivre son chemin [-Wimplicit-fallthrough=]
                 c = (c << 6) | ( tmp & 0x3F);
                 ^
boost/locale/utf.hpp:232:13: note: ici
             case 1:
             ^~~~

* geometry:

boost/geometry/formulas/vertex_longitude.hpp:340:32: warning: unused
parameter 'lon1' [-Wunused-parameter]
    static inline CT apply(CT& lon1,
                               ^
boost/geometry/formulas/vertex_longitude.hpp:341:32: warning: unused
parameter 'lat1' [-Wunused-parameter]
                           CT& lat1,
                               ^
boost/geometry/formulas/vertex_longitude.hpp:343:32: warning: unused
parameter 'lat2' [-Wunused-parameter]
                           CT& lat2,
                               ^
boost/geometry/formulas/vertex_longitude.hpp:344:38: warning: unused
parameter 'vertex_lat' [-Wunused-parameter]
                           CT const& vertex_lat,
                                     ^
boost/geometry/formulas/vertex_longitude.hpp:345:32: warning: unused
parameter 'alp1' [-Wunused-parameter]
                           CT& alp1,
                               ^
boost/geometry/formulas/vertex_longitude.hpp:346:44: warning: unused
parameter 'azimuth_strategy' [-Wunused-parameter]
                           Strategy const& azimuth_strategy)
                                           ^
boost/geometry/strategies/spherical/intersection.hpp:544:81: warning:
unused parameter 'b2' [-Wunused-parameter]
                                                Point2 const& b1,
Point2 const& b2, // in

         ^
boost/geometry/algorithms/detail/envelope/segment.hpp:156:61: warning:
unused parameter 'lon1' [-Wunused-parameter]
    static inline void compute_box_corners(CalculationType& lon1,
                                                            ^
boost/geometry/algorithms/detail/envelope/segment.hpp:158:61: warning:
unused parameter 'lon2' [-Wunused-parameter]
                                           CalculationType& lon2,
                                                            ^
boost/geometry/strategies/spherical/intersection.hpp:544:81: warning:
unused parameter 'b2' [-Wunused-parameter]
                                                Point2 const& b1,
Point2 const& b2, // in

         ^

* asio (windows 32 and 64 bits with mingw w64 + g++ 8.2.0) :

/softs/win32-mingw-8.2.0/release/boost/include/boost/asio/detail/impl/win_iocp_socket_service_base.ipp:
Dans la fonction membre « boost::system::error_code
boost::asio::detail::win_iocp_socket_service_base::cancel(boost::asio::>
/softs/win32-mingw-8.2.0/release/boost/include/boost/asio/detail/impl/win_iocp_socket_service_base.ipp:253:51:
warning: transtypage entre types de fonctions incompatibles de «
FARPROC » {aka « int (__attribute__((stdcall)) *)()>
     cancel_io_ex_t cancel_io_ex = (cancel_io_ex_t)cancel_io_ex_ptr;
                                                   ^~~~~~~~~~~~~~~~

* ublas:

/softs/lin64-gcc-8.2.0/debug/boost/include/boost/numeric/ublas/matrix_expression.hpp:2224:17:
warning: cette instruction « if » ne protège pas…
[-Wmisleading-indentation]
                 if (it2_ != it2_end_)
                 ^~
/softs/lin64-gcc-8.2.0/debug/boost/include/boost/numeric/ublas/matrix_expression.hpp:2227:21:
note: …cette instruction, mais l'indentation de cette dernière est
trompeuse car elle fait croire qu'elle est gardée par le « if »
                     if (it2_ != it2_end_) {
                     ^~
boost/numeric/ublas/functional.hpp:1673:57: warning: unused parameter
'size_i' [-Wunused-parameter]
        size_type upper_element (size_type i, size_type size_i,
size_type j, size_type size_j) {
                                                        ^
boost/numeric/ublas/functional.hpp:1673:88: warning: unused parameter
'size_j' [-Wunused-parameter]
        size_type upper_element (size_type i, size_type size_i,
size_type j, size_type size_j) {

                ^

* interprocess (windows mingw-w64 + g++ 8.2.0 32/64 bits):

In file included from boost/interprocess/errors.hpp:41,
                 from boost/interprocess/exceptions.hpp:24,
                 from boost/interprocess/sync/file_lock.hpp:24,
                 from Progs/delypse-transfer.cpp:32:
boost/interprocess/detail/win32_api.hpp:189:8: warning: « struct
boost::interprocess::winapi::IUnknown_BIPC » a des fonctions
virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
 struct IUnknown_BIPC
        ^~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:200:8: warning: la classe de
base « struct boost::interprocess::winapi::IUnknown_BIPC » a un
destructeur non virtuel accessible [-Wnon-virtual-dtor]
 struct IWbemClassObject_BIPC : public IUnknown_BIPC
        ^~~~~~~~~~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:200:8: warning: « struct
boost::interprocess::winapi::IWbemClassObject_BIPC » a des fonctions
virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
boost/interprocess/detail/win32_api.hpp:306:8: warning: la classe de
base « struct boost::interprocess::winapi::IUnknown_BIPC » a un
destructeur non virtuel accessible [-Wnon-virtual-dtor]
 struct IWbemContext_BIPC : public IUnknown_BIPC
        ^~~~~~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:306:8: warning: « struct
boost::interprocess::winapi::IWbemContext_BIPC » a des fonctions
virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
boost/interprocess/detail/win32_api.hpp:345:8: warning: la classe de
base « struct boost::interprocess::winapi::IUnknown_BIPC » a un
destructeur non virtuel accessible [-Wnon-virtual-dtor]
 struct IEnumWbemClassObject_BIPC : public IUnknown_BIPC
        ^~~~~~~~~~~~~~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:345:8: warning: « struct
boost::interprocess::winapi::IEnumWbemClassObject_BIPC » a des
fonctions virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
boost/interprocess/detail/win32_api.hpp:369:8: warning: la classe de
base « struct boost::interprocess::winapi::IUnknown_BIPC » a un
destructeur non virtuel accessible [-Wnon-virtual-dtor]
 struct IWbemServices_BIPC : public IUnknown_BIPC
        ^~~~~~~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:369:8: warning: « struct
boost::interprocess::winapi::IWbemServices_BIPC » a des fonctions
virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
boost/interprocess/detail/win32_api.hpp:518:8: warning: la classe de
base « struct boost::interprocess::winapi::IUnknown_BIPC » a un
destructeur non virtuel accessible [-Wnon-virtual-dtor]
 struct IWbemLocator_BIPC : public IUnknown_BIPC
        ^~~~~~~~~~~~~~~~~
boost/interprocess/detail/win32_api.hpp:518:8: warning: « struct
boost::interprocess::winapi::IWbemLocator_BIPC » a des fonctions
virtuelles et un destructeur non virtuel accessible
[-Wnon-virtual-dtor]
In file included from boost/interprocess/errors.hpp:41,
                 from boost/interprocess/exceptions.hpp:24,
                 from boost/interprocess/sync/file_lock.hpp:24,
                 from Progs/delypse-transfer.cpp:32:
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::get_system_time_of_day_information(boost::interprocess::winapi::system_timeofday_information&)
»:
boost/interprocess/detail/win32_api.hpp:1676:58: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          dll_func::get(dll_func::NtQuerySystemInformation);
                                                          ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::unlink_file(const char*) »:
boost/interprocess/detail/win32_api.hpp:1892:78: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          (NtSetInformationFile_t)dll_func::get(dll_func::NtSetInformationFile);
                                                                              ^
boost/interprocess/detail/win32_api.hpp:1894:94: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
       NtQueryObject_t pNtQueryObject =
(NtQueryObject_t)dll_func::get(dll_func::NtQueryObject);

                       ^
boost/interprocess/detail/win32_api.hpp:1966:85: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          NtOpenFile_t pNtOpenFile =
(NtOpenFile_t)dll_func::get(dll_func::NtOpenFile);

              ^
boost/interprocess/detail/win32_api.hpp:1967:73: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          NtClose_t pNtClose = (NtClose_t)dll_func::get(dll_func::NtClose);
                                                                         ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::get_file_mapping_size(void*, long long
int&) »:
boost/interprocess/detail/win32_api.hpp:2413:63: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
       (NtQuerySection_t)dll_func::get(dll_func::NtQuerySection);
                                                               ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::get_semaphore_info(void*, long int&, long
int&) »:
boost/interprocess/detail/win32_api.hpp:2426:86: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          (winapi::NtQuerySemaphore_t)dll_func::get(winapi::dll_func::NtQuerySemaphore);

               ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::query_timer_resolution(long unsigned
int*, long unsigned int*, long unsigned int*) »:
boost/interprocess/detail/win32_api.hpp:2437:98: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          (winapi::NtQueryTimerResolution_t)dll_func::get(winapi::dll_func::NtQueryTimerResolution);

                           ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::query_performance_counter(long long int*)
»:
boost/interprocess/detail/win32_api.hpp:2444:57: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          dll_func::get(dll_func::QueryPerformanceCounter);
                                                         ^
boost/interprocess/detail/win32_api.hpp: Dans la fonction « bool
boost::interprocess::winapi::query_performance_frequency(long long
int*) »:
boost/interprocess/detail/win32_api.hpp:2451:59: warning: transtypage
entre types de fonctions incompatibles de «
boost::interprocess::winapi::farproc_t » {aka « int
(__attribute__((stdcall)) *)() »} vers « boost::interprocess:>
          dll_func::get(dll_func::QueryPerformanceFrequency);
                                                           ^

* atomic (OSX):

boost/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp:269:113:
warning: unused parameter 'order' [-Wunused-parameter]
    static BOOST_FORCEINLINE storage_type exchange(storage_type
volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net