[Boost.Asio] Compiler warning in address_v6.hpp

I'm new to boost and am looking for a bit of advice if possible. asio/ip/address_v6.hpp lines 58 & 355 yield the following compiler warnings when flag -Wmissing-braces (which is enabled by -Wall) is set: missing braces around initializer for 'u_char [16]' missing braces around initializer for 'in6_addr::<anonymous union>' These can be avoided by amending e.g. line 58 from boost::asio::detail::in6_addr_type tmp_addr = IN6ADDR_ANY_INIT; to boost::asio::detail::in6_addr_type tmp_addr = {{IN6ADDR_ANY_INIT}}; Is this worth submitting a bug report and patch for this, or not?

Steven Watanabe wrote:
I had a similar problem on AIX. I patched ASIO to do roughly: #ifdef AIX (whatever the macro is) # define IN6ADDR_ANY_INIT {{WHATEVER}} #else # define AS_BEFORE #endif -- Sohail Somani http://uint32t.blogspot.com
participants (3)
-
Fraser Hutchison
-
Sohail Somani
-
Steven Watanabe