Summary: | nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type] | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | cwabbott0, idr, jason |
Version: | git | Keywords: | bisected, regression |
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2016-05-06 08:29:48 UTC
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 (In reply to Jose Fonseca from comment #1) > 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 Thanks! Patch looks good to me. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.