We just had one case of "static" not being the first item, in
bandfilters.h. Updated the script generating it and then re-generated
the file.
---
 src/Makefile                 |    1 +
 src/renderer/bandfilters.h   |    6 +++---
 src/renderer/bandfilters.sce |    6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 6ed4fa0..d0d8a1f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,6 +28,7 @@ else
 endif
 
 CFLAGS = -O9 -Wall -Wstrict-prototypes -Wmissing-prototypes \
+        -Wold-style-declaration \
         -mbarrel-shift-enabled -mmultiply-enabled \
         -mdivide-enabled -msign-extend-enabled -fsingle-precision-constant \
         -I$(RTEMS_MAKEFILE_PATH)/lib/include -g
diff --git a/src/renderer/bandfilters.h b/src/renderer/bandfilters.h
index 461e3dd..8c423bd 100644
--- a/src/renderer/bandfilters.h
+++ b/src/renderer/bandfilters.h
@@ -1,6 +1,6 @@
 /* Generated automatically by bandfilters.sce. Do not edit manually. */
 
-const static int bass_filter[128] = {
+static const int bass_filter[128] = {
 155,
 157,
 158,
@@ -131,7 +131,7 @@ const static int bass_filter[128] = {
 155,
 };
 
-const static int mid_filter[128] = {
+static const int mid_filter[128] = {
 -313,
 -320,
 -326,
@@ -262,7 +262,7 @@ const static int mid_filter[128] = {
 -313,
 };
 
-const static int treb_filter[128] = {
+static const int treb_filter[128] = {
 17,
 0,
 2,
diff --git a/src/renderer/bandfilters.sce b/src/renderer/bandfilters.sce
index e04d34a..4879456 100644
--- a/src/renderer/bandfilters.sce
+++ b/src/renderer/bandfilters.sce
@@ -13,21 +13,21 @@ end
 
 mfprintf(fid, "/* Generated automatically by bandfilters.sce. Do not edit 
manually. */\n\n");
 
-mfprintf(fid, "const static int bass_filter[%d] = {\n", ncoef);
+mfprintf(fid, "static const int bass_filter[%d] = {\n", ncoef);
 bass = ffilt("lp", ncoef, f1);
 for i=1:ncoef
        mfprintf(fid, "%d,\n", amp*bass(i));
 end
 mfprintf(fid, "};\n\n");
 
-mfprintf(fid, "const static int mid_filter[%d] = {\n", ncoef);
+mfprintf(fid, "static const int mid_filter[%d] = {\n", ncoef);
 mid = ffilt("bp", ncoef, f1, f2);
 for i=1:ncoef
        mfprintf(fid, "%d,\n", amp*mid(i));
 end
 mfprintf(fid, "};\n\n");
 
-mfprintf(fid, "const static int treb_filter[%d] = {\n", ncoef);
+mfprintf(fid, "static const int treb_filter[%d] = {\n", ncoef);
 treb = ffilt("bp", ncoef, f2, f3);
 for i=1:ncoef
        mfprintf(fid, "%d,\n", amp*treb(i));
-- 
1.7.1

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to