util: mark s as MAYBE_UNUSED in _mesa_half_to_unorm8
authorKai Wasserbäch <kai@dev.carbon-project.org>
Fri, 17 Aug 2018 14:32:31 +0000 (16:32 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 18 Aug 2018 00:34:12 +0000 (10:34 +1000)
commit9387ca29ae465f5e1ee3b4a73c1f7725304bb30e
tree46725cf76f80bd2326c6fbabbd84de85ae3ffe22
parent0da93de9c85d27cf7df000a950894aa8605dd951
util: mark s as MAYBE_UNUSED in _mesa_half_to_unorm8

Only used, when asserts are enabled.

Fixes an unused-variable warning with gcc-8:
 ../../../src/util/half_float.c: In function '_mesa_half_to_unorm8':
 ../../../src/util/half_float.c:189:14: warning: unused variable 's' [-Wunused-variable]
     const int s = (val >> 15) & 0x1;
               ^

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/util/half_float.c