Skip to content

Commit

Permalink
flickernoise: use -Wold-style-declaration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wpwrak authored and Sebastien Bourdeauducq committed Dec 12, 2011
1 parent 8d7d53d commit 911ca23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Makefile
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions 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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/bandfilters.sce
Expand Up @@ -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));
Expand Down

0 comments on commit 911ca23

Please sign in to comment.