Skip to content
  1. Aug 17, 2018
    • Kai Wasserbäch's avatar
      amd/addrlib: mark returnCode as MAYBE_UNUSED in ElemGetExportNorm · 596de6bb
      Kai Wasserbäch authored
      Only used, when asserts are enabled.
      
      Fixes an unused-but-set-variable warning with GCC 8:
       ../../../src/amd/addrlib/addrinterface.cpp: In function 'int ElemGetExportNorm(ADDR_HANDLE, const ELEM_GETEXPORTNORM_INPUT*)':
       ../../../src/amd/addrlib/addrinterface.cpp:835:23: warning: variable 'returnCode' set but not used [-Wunused-but-set-variable]
            ADDR_E_RETURNCODE returnCode = ADDR_OK;
                              ^~~~~~~~~~
      596de6bb
    • Kai Wasserbäch's avatar
      vulkan/wsi: initialise image_index to 0 in x11_manage_fifo_queues · d4fc7a51
      Kai Wasserbäch authored
      Supresses a maybe-uninitialized warning with GCC 8.
      
      Note: image_index should always be initialised due to the result check,
            but the compiler doesn't see that.
      d4fc7a51
    • Kai Wasserbäch's avatar
      nir: mark *prev_block as MAYBE_UNUSED in opt_peel_loop_initial_if · 978cc18a
      Kai Wasserbäch authored
      Only used, when asserts are enabled.
      
      Fixes an unused-variable warning with gcc-8:
       ../../../src/compiler/nir/nir_opt_if.c: In function 'opt_peel_loop_initial_if':
       ../../../src/compiler/nir/nir_opt_if.c:109:15: warning: unused variable 'prev_block' [-Wunused-variable]
           nir_block *prev_block =
                      ^~~~~~~~~~
      978cc18a
    • Kai Wasserbäch's avatar
      util: mark s as MAYBE_UNUSED in _mesa_half_to_unorm8 · 71d878a1
      Kai Wasserbäch authored
      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;
                     ^
      71d878a1
  2. Aug 16, 2018
  3. Aug 15, 2018
Loading