Re: [Boost-bugs] [Boost C++ Libraries] #2534: Removing gcc warning

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2534: Removing gcc warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-07 12:44:35


#2534: Removing gcc warning
------------------------------------+---------------------------------------
  Reporter: richard_at_[hidden] | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: Boost 1.38.0 | Component: asio
   Version: Boost 1.37.0 | Severity: Cosmetic
Resolution: | Keywords: gcc warning
------------------------------------+---------------------------------------

Comment(by anonymous):

 This happens also in
 boost_1_37_0/boost/asio/detail/eventfd_select_interrupter.hpp.

 Is the workaround suggested here safe? The warning is there for a good
 reason, I presume.

 These are my details:
> uname -a
 Linux compilator 2.6.27-9-server #1 SMP Thu Nov 20 22:53:41 UTC 2008 i686
 GNU/Linux


 {{{
 g++ -c -o myxxxfile.o -O3 -I../boost_1_37_0/ -MP -MD myxxxfile.cpp
 In file included from
 ../boost_1_37_0/boost/asio/detail/select_interrupter.hpp:24,
                  from
 ../boost_1_37_0/boost/asio/detail/epoll_reactor.hpp:42,
                  from ../boost_1_37_0/boost/asio/impl/io_service.ipp:25,
                  from ../boost_1_37_0/boost/asio/io_service.hpp:550,
                  from ../boost_1_37_0/boost/asio/basic_io_object.hpp:20,
                  from ../boost_1_37_0/boost/asio/basic_socket.hpp:24,
                  from
 ../boost_1_37_0/boost/asio/basic_datagram_socket.hpp:25,
                  from ../boost_1_37_0/boost/asio.hpp:20,
                  from stdafx.h:22,
                  from myxxxfile.cpp:1:
 ../boost_1_37_0/boost/asio/detail/eventfd_select_interrupter.hpp: In
 member function 'void
 boost::asio::detail::eventfd_select_interrupter::interrupt()':
 ../boost_1_37_0/boost/asio/detail/eventfd_select_interrupter.hpp:89:
 warning: ignoring return value of 'ssize_t write(int, const void*,
 size_t)', declared with attribute warn_unused_result
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2534#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC