Opened 7 years ago

Closed 7 years ago

#11770 closed Bugs (fixed)

thread/detail/invoker.hpp: missing return statement at end of non-void function operator=()

Reported by: Jan Gampe <mail@…> Owned by: viboes
Milestone: Boost 1.60.0 Component: thread
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

I'm using the latest Intel compiler with the flags

  • -std=c++11
  • -Wall
  • -early-template-check

Compiling any code including <boost/thread.hpp> results in the following warning:

In file included from /boost/thread/future.hpp(20),
                 from /boost/thread.hpp(24),
                 from thread.cc(1):
/boost/thread/detail/invoker.hpp(76): warning #1011: missing return statement at end of non-void function "boost::detail::invoker<Fp, Args...>::operator=(boost::detail::invoker<Fp, Args...> &&)"
        }
        ^


I am not familiar with the particular purpose of this class, but might a simple

return *this;

help?

Change History (5)

comment:1 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by viboes, 7 years ago

Thanks for catching this.

comment:4 by Jan Gampe <mail@…>, 7 years ago

This removes the warning for me, thank you!

comment:5 by viboes, 7 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.