main/get: Converted type conversion macros to inline functions
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 18 Feb 2020 22:41:38 +0000 (14:41 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Feb 2020 18:34:33 +0000 (18:34 +0000)
commit360ffdf4e23464879748051e57587aff938bd50d
treeb9ee8b22506f1c2209a038924606501c72012926
parentf1dc4c9554ce913acf4d3236b4d43b829fb92073
main/get: Converted type conversion macros to inline functions

Quiet warnings when called with a GLubyte:

  src/mesa/main/get.c:3215:19: warning: result of comparison of constant 32767 with expression of type 'GLubyte' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
      params[0] = INT_TO_FIXED(((GLubyte *) p)[0]);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/mesa/main/get.c:78:38: note: expanded from macro 'INT_TO_FIXED'
                                 ~~~ ^ ~~~~~~~~

Delete ENUM_TO_INT64, ENUM_TO_FIXED and BOOLEAN_TO_INT64 which aren't
used.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3866>
src/mesa/main/get.c