Made variable delcarations C90 compliant, so that older GCCs (e.g., on RH7)
can still compile Tux Paint.
This commit is contained in:
parent
78b7432cf8
commit
a2b8ca5d3d
2 changed files with 282 additions and 173 deletions
3
Makefile
3
Makefile
|
|
@ -93,7 +93,8 @@ CFLAGS=-O2 -W -Wall -fno-common -ffast-math \
|
||||||
-Wcast-align -Wredundant-decls \
|
-Wcast-align -Wredundant-decls \
|
||||||
-Wbad-function-cast -Wwrite-strings \
|
-Wbad-function-cast -Wwrite-strings \
|
||||||
-Waggregate-return \
|
-Waggregate-return \
|
||||||
-Wstrict-prototypes -Wmissing-prototypes
|
-Wstrict-prototypes -Wmissing-prototypes \
|
||||||
|
-Wdeclaration-after-statement
|
||||||
|
|
||||||
DEFS=-DDATA_PREFIX=\"$(DATA_PREFIX)/\" \
|
DEFS=-DDATA_PREFIX=\"$(DATA_PREFIX)/\" \
|
||||||
-D$(NOSOUNDFLAG) -DDOC_PREFIX=\"$(DOC_PREFIX)/\" \
|
-D$(NOSOUNDFLAG) -DDOC_PREFIX=\"$(DOC_PREFIX)/\" \
|
||||||
|
|
|
||||||
452
src/tuxpaint.c
452
src/tuxpaint.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue