[beast: 21/31] BSE: silence useless compiler warnings in gslfft.cc and gsloscillator-aux.cc



commit 8dd756ba470945283d31709b0e0d5232a293b0e9
Author: Tim Janik <timj gnu org>
Date:   Fri Jun 12 19:07:04 2015 +0200

    BSE: silence useless compiler warnings in gslfft.cc and gsloscillator-aux.cc

 bse/Makefile.am          |    7 +++++--
 bse/gsloscillator-aux.cc |    1 +
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index 363a24d..94096a9 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -157,7 +157,6 @@ GLIB_MKENUMS = glib-mkenums
 SFIDL = $(top_builddir)/sfi/sfidl
 SFIDL_INC = --nostdinc -I$(top_builddir) -I$(top_srcdir) -I$(srcdir)
 
-
 #
 # rules to generate built sources
 #
@@ -173,7 +172,11 @@ endif
 GENERATED += gslfft.cc
 $(srcdir)/gslfft.cc: @PERLRULE@ $(srcdir)/gsl-fftgen.pl $(srcdir)/gsl-fftconf.sh
        $(AM_V_GEN)
-       $(Q) $(srcdir)/gsl-fftconf.sh '$(PERL) $(srcdir)/gsl-fftgen.pl $(if $(findstring 1, $(V)) ,, 
--no-verbose)' \"gslfft.hh\" >$@
+       $(Q) (cd . \
+       && echo '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' \
+       && $(srcdir)/gsl-fftconf.sh '$(PERL) $(srcdir)/gsl-fftgen.pl $(if $(findstring 1, $(V)) ,, 
--no-verbose)' \"gslfft.hh\" \
+       ) > xgen-$(@F) \
+       && mv xgen-$(@F) $@
 # bsegentypes.h
 GENERATED_EXTRA_DIST += bsegentypes.h
 $(libbse_la_OBJECTS): bsegentypes.h
diff --git a/bse/gsloscillator-aux.cc b/bse/gsloscillator-aux.cc
index 488f91d..0b6203f 100644
--- a/bse/gsloscillator-aux.cc
+++ b/bse/gsloscillator-aux.cc
@@ -1,5 +1,6 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 
+#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
 
 #define        OSC_FLAGS               (GSL_INCLUDER_CASE | OSC_INCLUDER_FLAGS)
 #define ISYNC1_OSYNC0          ((OSC_FLAGS & OSC_FLAG_ISYNC) && !(OSC_FLAGS & OSC_FLAG_OSYNC))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]