a lot of warning for g++ 8.3.0

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

a lot of warning for g++ 8.3.0

slitvinov
I am build graphs-tools 2.31 using g++ 8.3.0. It floods me with warnings like
the following:

/users/lisergey/include/boost/bind.hpp:41:1: note: #pragma message: The
practice of declaring the Bind placeholders (_1, _2, ...) in the global
namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace
boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the
current behavior.
 )
 ^

/users/lisergey/include/boost/python/extract.hpp:185:11: warning:
'*((void*)&<anonymous> +24)' may be used uninitialized in this function
[-Wmaybe-uninitialized]
           );
           ^
/users/lisergey/include/boost/python/extract.hpp: In constructor
'WrappedState<Graph, State>::WrappedState(Graph&, WrappedState<Graph,
State>::smap_t, WrappedState<Graph, State>::smap_t, boost::python::dict,
rng_t&) [with Graph = boost::filt_graph<boost::adj_list&lt;long unsigned
int>,
graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map&lt;unsigned
char, boost::adj_edge_index_property_map&lt;long unsigned int> > >,
graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map&lt;unsigned
char, boost::typed_identity_property_map&lt;long unsigned int> > > >; State
= graph_tool::majority_voter_state]':




--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

Tiago Peixoto
Administrator
Am 01.06.20 um 12:26 schrieb slitvinov:

> I am build graphs-tools 2.31 using g++ 8.3.0. It floods me with warnings like
> the following:
>
> /users/lisergey/include/boost/bind.hpp:41:1: note: #pragma message: The
> practice of declaring the Bind placeholders (_1, _2, ...) in the global
> namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace
> boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the
> current behavior.
>  )
>  ^
>
> /users/lisergey/include/boost/python/extract.hpp:185:11: warning:
> '*((void*)&<anonymous> +24)' may be used uninitialized in this function
> [-Wmaybe-uninitialized]
>            );
>            ^
> /users/lisergey/include/boost/python/extract.hpp: In constructor
> 'WrappedState<Graph, State>::WrappedState(Graph&, WrappedState<Graph,
> State>::smap_t, WrappedState<Graph, State>::smap_t, boost::python::dict,
> rng_t&) [with Graph = boost::filt_graph<boost::adj_list&lt;long unsigned
> int>,
> graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map&lt;unsigned
> char, boost::adj_edge_index_property_map&lt;long unsigned int> > >,
> graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map&lt;unsigned
> char, boost::typed_identity_property_map&lt;long unsigned int> > > >; State
> = graph_tool::majority_voter_state]':
These warnings come from boost, not graph-tool.

Best,
Tiago


--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

slitvinov
> These warnings come from boost, not graph-tool.

Thank you. I think it is more friendly to the users not to hard code -Wall
-Wextra.

configure.ac:
dnl turn on warnings
[CXXFLAGS="-Wall -Wextra -ftemplate-backtrace-limit=0 ${CXXFLAGS}"]



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

Tiago Peixoto
Administrator
Am 01.06.20 um 12:48 schrieb slitvinov:
>> These warnings come from boost, not graph-tool.
>
> Thank you. I think it is more friendly to the users not to hard code -Wall
> -Wextra.
>
> configure.ac:
> dnl turn on warnings
> [CXXFLAGS="-Wall -Wextra -ftemplate-backtrace-limit=0 ${CXXFLAGS}"]

Why?

You can override this with -Wno-all -Wno-extra etc.

Best,
Tiago


--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

slitvinov
> Why?

Because to everybody trained to ignore them.



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

slitvinov
> Because to everybody trained to ignore them.

Sorry. I mean "because not everyone is trained to ignore them". Thank you
anyway.



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: a lot of warning for g++ 8.3.0

Tiago Peixoto
Administrator
Am 01.06.20 um 18:23 schrieb slitvinov:
>> Because to everybody trained to ignore them.
>
> Sorry. I mean "because not everyone is trained to ignore them". Thank you
> anyway.

You're not supposed to ignore them.

In my setup, and in all the environments where I build graph-tool,  I do
not see any warnings.

As I already told you two times before, these warnings come from outside
of graph-tool. Fix your environment if you do not want to see them, or
disable them. Just don't shoot the messenger.

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>