diff liboctave/array/CNDArray.cc @ 26516:53d03e2e4948 stable

silence unused parameter compiler warnings when building without FFTW * CNDArray.cc (ComplexNDArray::fourier, ComplexNDArray::ifourier): Use octave_unused_parameter to silence compiler warnings when building without FFTW. * dNDArray.cc (NDArray::fourier, NDArray::ifourier): Likewise. * fCNDArray.cc (FloatComplexNDArray::fourier, FloatComplexNDArray::ifourier): Likewise. * fNDArray.cc (FloatNDArray::fourier, FloatNDArray::ifourier): Likewise.
author Mike Miller <mtmiller@octave.org>
date Thu, 10 Jan 2019 19:04:04 -0800
parents 00f796120a6d
children 269d71efaf04
line wrap: on
line diff
--- a/liboctave/array/CNDArray.cc	Thu Jan 10 13:38:32 2019 +0100
+++ b/liboctave/array/CNDArray.cc	Thu Jan 10 19:04:04 2019 -0800
@@ -190,6 +190,8 @@
 ComplexNDArray
 ComplexNDArray::fourier (int dim) const
 {
+  octave_unused_parameter (dim);
+
   (*current_liboctave_error_handler)
     ("support for FFTW was unavailable or disabled when liboctave was built");
 
@@ -199,6 +201,8 @@
 ComplexNDArray
 ComplexNDArray::ifourier (int dim) const
 {
+  octave_unused_parameter (dim);
+
   (*current_liboctave_error_handler)
     ("support for FFTW was unavailable or disabled when liboctave was built");