Re: [boost] [Boost-users] [release] Boost 1.68.0 Beta 1 -> warnings in gil, locale, geometry, asio, ublas, interprocess, atomic
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
Hi Frédéric, [also including the boost-gil list in my reply] On 2018-07-29 04:21 AM, Frédéric via Boost wrote:
Here are some more warnings while using the libraries:
* gil:
[...] thanks for reporting those. For avoidance of doubt, would you please provide the exact compiler version and command line which generated those warnings ? We have been seeing many more warnings with different settings, but most of them are quite tricky to resole, so we haven't done that yet. The ones you post, however, seem trivial enough so I would like to work on a quick fix. Thanks again, Stefan -- ...ich hab' noch einen Koffer in Berlin...
* gil:
thanks for reporting those. For avoidance of doubt, would you please provide the exact compiler version and command line which generated those warnings ?
sure
* on linux x86_64 with clang++ 5.0.2:
clang++ -c -g3 -Wall -Wextra -Wnon-virtual-dtor
-Werror=delete-non-virtual-dtor -pipe -march=native -std=c++14 -o
file.o file.cpp
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg.hpp:22:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/read.hpp:24:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/tags.hpp:45:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/io/base.hpp:34:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/toolbox.hpp:24:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/image_types.hpp:22:
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/image_types/indexed_image.hpp:190:5:
warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]
const std::size_t num_colors() const { return _num_colors; }
^~~~~~
In file included from Tools/Bitmap.cpp:10:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg.hpp:22:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/read.hpp:24:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/tags.hpp:45:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/io/base.hpp:34:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/toolbox.hpp:25:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/metafunctions.hpp:22:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/metafunctions/channel_type.hpp:29:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/dynamic_images.hpp:27:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/dynamic_image/dynamic_image_all.hpp:26:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/dynamic_image/algorithm.hpp:16:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/dynamic_image/any_image.hpp:24:
/softs/lin64-clang-5.0.2/debug/boost/include/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; }
^
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg.hpp:22:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/read.hpp:24:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/io/jpeg/tags.hpp:45:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/io/base.hpp:34:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/toolbox.hpp:25:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/metafunctions.hpp:22:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/metafunctions/channel_type.hpp:29:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/toolbox/dynamic_images.hpp:27:
In file included from
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/dynamic_image/dynamic_image_all.hpp:26:
/softs/lin64-clang-5.0.2/debug/boost/include/boost/gil/extension/dynamic_image/algorithm.hpp:147:70:
warning: unused parameter 'src' [-Wunused-parameter]
template
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Stefan Seefeld via Boost Sent: 29 July 2018 09:49 To: boost@lists.boost.org; boost-gil@lists.boost.org Cc: Stefan Seefeld Subject: Re: [boost] [Boost-users] [release] Boost 1.68.0 Beta 1 -> warnings in gil, locale, geometry, asio, ublas, interprocess, atomic
Hi Frédéric,
[also including the boost-gil list in my reply]
On 2018-07-29 04:21 AM, Frédéric via Boost wrote:
Here are some more warnings while using the libraries:
* gil:
[...]
thanks for reporting those. For avoidance of doubt, would you please provide the exact compiler version and command line which generated those warnings ? We have been seeing many more warnings with different settings, but most of them are quite tricky to resole, so we haven't done that yet. The ones you post, however, seem trivial enough so I would like to work on a quick fix.
You may find this useful https://svn.boost.org/trac10/wiki/Guidelines/WarningsGuidelines and updates to the document from recent and relevant practical experience are also very welcome. (It may be stale info?) You can edit the document yourself or send me suggested edits. We might also re-host this document somewhere on github/boostorg? Views? Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
On 07/29/18 11:21, Frédéric via Boost wrote:
Here are some more warnings while using the libraries:
* 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
Should be fixed in: https://github.com/boostorg/atomic/commit/19eecf893c665410de63ab6ebb8549f405...
Should be fixed in: https://github.com/boostorg/atomic/commit/19eecf893c665410de63ab6ebb8549f405...
yes it works, thanks, F
Here are some more warnings while using the libraries:
* ublas:
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) {
^
I reported that issue here: https://github.com/boostorg/ublas/issues/55 and I fixed it here: https://github.com/boostorg/ublas/pull/56 CI tests passed. Can someone merge? Thanks
participants (4)
-
Andrey Semashev
-
Frédéric
-
Paul A. Bristow
-
Stefan Seefeld