__atomic_futex_unsigned::_M_load_when_not_equal has a 'return' statement with no value, in function returning unsigned int
Jonathan Wakely
jwakely@redhat.com
Thu Jul 23 08:21:00 GMT 2015
On 22/07/15 22:30 -0400, Patrick Palka wrote:
>Specifically, line 149 of atomix_futex.h has a bare "return;"
>statement, but the function is marked as returning non-void. This was
>caught while working on PR c++/18969. Vanilla G++ does not catch this
>error because return statements inside templates are currently only
>analyzed during instantiation time.
Ouch. Luckily that function is never called, so it's not doing any
harm.
Torvald, assuming we want to keep that unused function, is this the
right fix?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150723/2387bc4a/attachment.bin>
More information about the Libstdc++
mailing list