[Mesa-dev] [Bug 95296] nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 6 11:04:23 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95296

Jose Fonseca <jfonseca at vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Jose Fonseca <jfonseca at vmware.com> ---
GCC (at least 5.2.1) also throws an warning...

src/compiler/nir/nir_lower_double_packing.c: In function
‘lower_double_pack_impl’:
src/compiler/nir/nir_lower_double_packing.c:79:11: warning: ‘return’ with a
value, in function returning void
    return true;
           ^

Don't older GCC versions warn?


I've took the liberty of pushing fix 8ae78f7d2828778a386ed1737f17add69eb035a9

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160506/f7bbf45e/attachment.html>


More information about the mesa-dev mailing list