FS#12256: Use '-fgnu89-inline' for mpegplayer and doom. Resolves compiler warnings when using mingw32.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30420 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
573f2206c1
commit
41a0bfc5ed
2 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,7 @@ DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
|
||||||
# add source files to OTHER_SRC to get automatic dependencies
|
# add source files to OTHER_SRC to get automatic dependencies
|
||||||
OTHER_SRC += $(DOOM_SRC)
|
OTHER_SRC += $(DOOM_SRC)
|
||||||
|
|
||||||
DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
|
DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing -fgnu89-inline
|
||||||
|
|
||||||
ifndef APP_TYPE
|
ifndef APP_TYPE
|
||||||
ifeq ($(TARGET), IRIVER_H100)
|
ifeq ($(TARGET), IRIVER_H100)
|
||||||
|
|
|
@ -18,4 +18,10 @@ MPEG_OBJ := $(call c2obj, $(MPEG_SRC))
|
||||||
# add source files to OTHER_SRC to get automatic dependencies
|
# add source files to OTHER_SRC to get automatic dependencies
|
||||||
OTHER_SRC += $(MPEG_SRC)
|
OTHER_SRC += $(MPEG_SRC)
|
||||||
|
|
||||||
|
MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline
|
||||||
|
|
||||||
$(MPEGBUILDDIR)/mpegplayer.rock: $(MPEG_OBJ) $(CODECDIR)/libmad-mpeg.a
|
$(MPEGBUILDDIR)/mpegplayer.rock: $(MPEG_OBJ) $(CODECDIR)/libmad-mpeg.a
|
||||||
|
|
||||||
|
$(MPEGBUILDDIR)/%.o: $(MPEGSRCDIR)/%.c $(MPEGSRCDIR)/mpegplayer.make
|
||||||
|
$(SILENT)mkdir -p $(dir $@)
|
||||||
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(MPEGCFLAGS) -c $< -o $@
|
||||||
|
|
Loading…
Reference in a new issue