From f3690d00ac52490495efde79a11a96852d8fded2 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 25 Oct 2017 17:36:43 +0200 Subject: [PATCH] Make compilation unit rtengine/rtlensfun.cc -Wextra clean, #4155 --- rtengine/rtlensfun.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rtengine/rtlensfun.cc b/rtengine/rtlensfun.cc index ed19f44f0..29dfacb17 100644 --- a/rtengine/rtlensfun.cc +++ b/rtengine/rtlensfun.cc @@ -75,11 +75,19 @@ bool LFModifier::isCACorrectionAvailable() const return false; } +#ifdef __GNUC__ // silence warning, can be removed when function is implemented +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif void LFModifier::correctCA(double &x, double &y, int channel) const { } +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + void LFModifier::processVignetteLine(int width, int y, float *line) const {