mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
OS X: Fix more warnings.
git-svn-id: https://svn.eduke32.com/eduke32@2537 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
90e410cf47
commit
3929d60744
7 changed files with 39 additions and 11 deletions
|
@ -235,7 +235,7 @@ static struct soundQuality_t {
|
||||||
// enable all the controls on the Configuration page
|
// enable all the controls on the Configuration page
|
||||||
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
||||||
NSControl *control;
|
NSControl *control;
|
||||||
while (control = [enumerator nextObject]) [control setEnabled:true];
|
while ((control = [enumerator nextObject])) [control setEnabled:true];
|
||||||
|
|
||||||
gamelistsrc = [[GameListSource alloc] init];
|
gamelistsrc = [[GameListSource alloc] init];
|
||||||
[[gameList documentView] setDataSource:gamelistsrc];
|
[[gameList documentView] setDataSource:gamelistsrc];
|
||||||
|
@ -266,7 +266,7 @@ static struct soundQuality_t {
|
||||||
// user can enable it if they want to while waiting for something else to happen
|
// user can enable it if they want to while waiting for something else to happen
|
||||||
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
||||||
NSControl *control;
|
NSControl *control;
|
||||||
while (control = [enumerator nextObject]) {
|
while ((control = [enumerator nextObject])) {
|
||||||
if (control == alwaysShowButton) continue;
|
if (control == alwaysShowButton) continue;
|
||||||
[control setEnabled:false];
|
[control setEnabled:false];
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,10 +191,22 @@ endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),DARWIN)
|
ifeq ($(PLATFORM),DARWIN)
|
||||||
OURCFLAGS += -fno-pic -I$(abspath Apple) -I$(abspath Apple/include)
|
OURCFLAGS += -fno-pic -I$(abspath Apple) -I$(abspath Apple/include)
|
||||||
|
|
||||||
|
ifneq ($(findstring x86_64,$(ARCH)),x86_64)
|
||||||
|
ifeq (,$(ARCH))
|
||||||
|
ifneq ($(findstring x86_64,$(SYSARCH)),x86_64)
|
||||||
|
LIBS += -read_only_relocs suppress
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
LIBS += -read_only_relocs suppress
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (1,$(SDL_FRAMEWORK))
|
ifeq (1,$(SDL_FRAMEWORK))
|
||||||
OURCFLAGS += -I$(APPLE_FRAMEWORKS)/SDL.framework/Headers \
|
OURCFLAGS += -I$(APPLE_FRAMEWORKS)/SDL.framework/Headers \
|
||||||
-I$(APPLE_FRAMEWORKS)/SDL_mixer.framework/Headers
|
-I$(APPLE_FRAMEWORKS)/SDL_mixer.framework/Headers
|
||||||
LIBS += -read_only_relocs suppress -LApple/lib -lvorbisfile -lvorbis -logg -lm \
|
|
||||||
|
LIBS += -LApple/lib -lvorbisfile -lvorbis -logg -lm \
|
||||||
-Wl,-framework,SDL -Wl,-framework,SDL_mixer Apple/lib/libSDLmain.a \
|
-Wl,-framework,SDL -Wl,-framework,SDL_mixer Apple/lib/libSDLmain.a \
|
||||||
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
||||||
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
||||||
|
@ -206,16 +218,18 @@ ifeq ($(PLATFORM),DARWIN)
|
||||||
GAMEOBJS+=$(OBJ)/SDLMain.$o
|
GAMEOBJS+=$(OBJ)/SDLMain.$o
|
||||||
else
|
else
|
||||||
OURCFLAGS += -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL
|
OURCFLAGS += -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL
|
||||||
LIBS += -read_only_relocs suppress -lvorbisfile -lvorbis -logg -lm -lSDL_mixer \
|
LIBS += -lvorbisfile -lvorbis -logg -lm -lSDL_mixer \
|
||||||
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
||||||
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
||||||
-Wl,-framework,AudioToolbox -Wl,-framework,IOKit -Wl,-framework,AGL \
|
-Wl,-framework,AudioToolbox -Wl,-framework,IOKit -Wl,-framework,AGL \
|
||||||
-Wl,-framework,QuickTime -lm
|
-Wl,-framework,QuickTime -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (0,$(OSX_STARTUPWINDOW))
|
ifneq (0,$(OSX_STARTUPWINDOW))
|
||||||
# EDITOROBJS+=$(OBJ)/GrpFile.game.$o $(OBJ)/GameListSource.game.$o $(OBJ)/StartupWinController.game.$o
|
# EDITOROBJS+=$(OBJ)/GrpFile.game.$o $(OBJ)/GameListSource.game.$o $(OBJ)/StartupWinController.game.$o
|
||||||
GAMEOBJS+=$(OBJ)/GrpFile.game.$o $(OBJ)/GameListSource.game.$o $(OBJ)/StartupWinController.game.$o
|
GAMEOBJS+=$(OBJ)/GrpFile.game.$o $(OBJ)/GameListSource.game.$o $(OBJ)/StartupWinController.game.$o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OURASFLAGS += -f macho
|
OURASFLAGS += -f macho
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -141,14 +141,23 @@ ifeq ($(RENDERTYPE),SDL)
|
||||||
ENGINEOBJS+= $(OBJ)/sdlayer.$o
|
ENGINEOBJS+= $(OBJ)/sdlayer.$o
|
||||||
|
|
||||||
ifeq ($(PLATFORM),DARWIN)
|
ifeq ($(PLATFORM),DARWIN)
|
||||||
|
ifneq ($(findstring x86_64,$(ARCH)),x86_64)
|
||||||
|
ifeq (,$(ARCH))
|
||||||
|
ifneq ($(findstring x86_64,$(SYSARCH)),x86_64)
|
||||||
|
UTILLIBS += -read_only_relocs suppress
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
UTILLIBS += -read_only_relocs suppress
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (1,$(SDL_FRAMEWORK))
|
ifeq (1,$(SDL_FRAMEWORK))
|
||||||
OURCFLAGS += -I$(APPLE_FRAMEWORKS)/SDL.framework/Headers \
|
OURCFLAGS += -I$(APPLE_FRAMEWORKS)/SDL.framework/Headers \
|
||||||
-I$(APPLE_FRAMEWORKS)/SDL_mixer.framework/Headers
|
-I$(APPLE_FRAMEWORKS)/SDL_mixer.framework/Headers
|
||||||
UTILLIBS += -read_only_relocs suppress \
|
UTILLIBS += -Wl,-framework,SDL -Wl,-framework,SDL_mixer ../Apple/lib/libSDLmain.a
|
||||||
-Wl,-framework,SDL -Wl,-framework,SDL_mixer ../Apple/lib/libSDLmain.a
|
|
||||||
else
|
else
|
||||||
OURCFLAGS += -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL
|
OURCFLAGS += -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL
|
||||||
UTILLIBS += -read_only_relocs suppress -lSDL_mixer
|
UTILLIBS += -lSDL_mixer
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@ SDL_FRAMEWORK = 0
|
||||||
# Overridden for OSes that don't have the cutdown stdc++ that is supc++
|
# Overridden for OSes that don't have the cutdown stdc++ that is supc++
|
||||||
STDCPPLIB=-lsupc++
|
STDCPPLIB=-lsupc++
|
||||||
|
|
||||||
|
# Detect machine architecture
|
||||||
|
SYSARCH?=$(strip $(shell uname -m))
|
||||||
|
|
||||||
# GCC version, for conditional selection of flags.
|
# GCC version, for conditional selection of flags.
|
||||||
# This is easier than trying to squeeze it out of gcc --version:
|
# This is easier than trying to squeeze it out of gcc --version:
|
||||||
GCC_MAJOR ?= 4
|
GCC_MAJOR ?= 4
|
||||||
|
|
|
@ -57,7 +57,7 @@ static id nsapp;
|
||||||
// enable all the controls on the Configuration page
|
// enable all the controls on the Configuration page
|
||||||
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
||||||
NSControl *control;
|
NSControl *control;
|
||||||
while (control = [enumerator nextObject])
|
while ((control = [enumerator nextObject]))
|
||||||
[control setEnabled:true];
|
[control setEnabled:true];
|
||||||
|
|
||||||
[cancelButton setEnabled:true];
|
[cancelButton setEnabled:true];
|
||||||
|
@ -74,7 +74,7 @@ static id nsapp;
|
||||||
// user can enable it if they want to while waiting for something else to happen
|
// user can enable it if they want to while waiting for something else to happen
|
||||||
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
NSEnumerator *enumerator = [[[[tabView tabViewItemAtIndex:0] view] subviews] objectEnumerator];
|
||||||
NSControl *control;
|
NSControl *control;
|
||||||
while (control = [enumerator nextObject]) {
|
while ((control = [enumerator nextObject])) {
|
||||||
if (control == alwaysShowButton) continue;
|
if (control == alwaysShowButton) continue;
|
||||||
[control setEnabled:false];
|
[control setEnabled:false];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1413,7 +1413,7 @@ static int32_t kpegrend(const char *kfilebuf, int32_t kfilength,
|
||||||
intptr_t daframeplace, int32_t dabytesperline, int32_t daxres, int32_t dayres,
|
intptr_t daframeplace, int32_t dabytesperline, int32_t daxres, int32_t dayres,
|
||||||
int32_t daglobxoffs, int32_t daglobyoffs)
|
int32_t daglobxoffs, int32_t daglobyoffs)
|
||||||
{
|
{
|
||||||
int32_t i, j, v, leng, xdim = 0, ydim = 0, index, prec, restartcnt, restartinterval;
|
int32_t i, j, v, leng = 0, xdim = 0, ydim = 0, index, prec, restartcnt, restartinterval;
|
||||||
int32_t x, y, z, xx, yy, zz, *dc = NULL, num, curbits, c, daval, dabits, *hqval, *hqbits, hqcnt, *quanptr = NULL;
|
int32_t x, y, z, xx, yy, zz, *dc = NULL, num, curbits, c, daval, dabits, *hqval, *hqbits, hqcnt, *quanptr = NULL;
|
||||||
int32_t passcnt = 0, ghsampmax = 0, gvsampmax = 0, glhsampmax = 0, glvsampmax = 0, glhstep, glvstep;
|
int32_t passcnt = 0, ghsampmax = 0, gvsampmax = 0, glhsampmax = 0, glvsampmax = 0, glhstep, glvstep;
|
||||||
int32_t eobrun, Ss, Se, Ah, Al, Alut[2], dctx[12], dcty[12], ldctx[12], /* ldcty[12], */ lshx[4], lshy[4];
|
int32_t eobrun, Ss, Se, Ah, Al, Alut[2], dctx[12], dcty[12], ldctx[12], /* ldcty[12], */ lshx[4], lshy[4];
|
||||||
|
|
|
@ -26,6 +26,8 @@ if [ `expr $darwinversion \< 9` == 1 ]; then
|
||||||
fi
|
fi
|
||||||
if [ `expr $darwinversion \> 9` == 1 ]; then
|
if [ `expr $darwinversion \> 9` == 1 ]; then
|
||||||
buildppc=0
|
buildppc=0
|
||||||
|
# PPC is disabled by default on Snow Leopard for ease of installation, but it is possible to override.
|
||||||
|
# PPC is disabled by default on Lion and up because support has been removed from the SDKs.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -158,7 +160,7 @@ if [ $buildtools -eq 1 ] && [ -d "build" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo buildtools: Creating fat binaries.
|
echo buildtools: Creating fat binaries.
|
||||||
utils=`make printutils` `EXESUFFIX_OVERRIDE=.debug make printutils`
|
utils=`make printutils && EXESUFFIX_OVERRIDE=.debug make printutils`
|
||||||
for i in $utils; do
|
for i in $utils; do
|
||||||
binaries=
|
binaries=
|
||||||
for j in ${i}.{x86,x64,ppc}; do
|
for j in ${i}.{x86,x64,ppc}; do
|
||||||
|
|
Loading…
Reference in a new issue