Commit 9ba2da57 authored by Tomáš Jakubec's avatar Tomáš Jakubec
Browse files

surpressing unused variable warnings with (void)var of parameters with default value

parent 010c84ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -60,12 +60,13 @@ class CudaReductionBuffer
      CudaReductionBuffer& operator=( CudaReductionBuffer const& copy ); // Not Implemented

      // private constructor of the singleton
      inline CudaReductionBuffer( size_t DECLARE_IF_HAVE_CUDA( size = 0 ) )
      inline CudaReductionBuffer( size_t size = 0 )
      {
#ifdef HAVE_CUDA
         setSize( size );
         atexit( CudaReductionBuffer::free_atexit );
#endif
         (void)size;
      }

      inline static void free_atexit( void )
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public:
   }

   static inline bool setup( const Config::ParameterContainer& DECLARE_IF_HAVE_CUDA(parameters),
                             const String& DECLARE_IF_HAVE_CUDA( prefix = "" ))
                             const String&  prefix = "" )
   {
#ifdef HAVE_CUDA
      int cudaDevice = parameters.getParameter< int >( prefix + "cuda-device" );
@@ -41,6 +41,7 @@ public:
         return false;
      }
#endif
      (void)prefix;
      return true;
   }
};