Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
d2e486e1
Commit
d2e486e1
authored
Apr 29, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Few warning fixes for -Wall with optimizations
parent
f2c29483
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
20 deletions
+20
-20
Makefile
src/Makefile
+2
-2
id_ca.c
src/id_ca.c
+6
-6
id_us.c
src/id_us.c
+1
-1
version.h
src/version.h
+1
-1
vi_glx.c
src/vi_glx.c
+1
-1
vi_svga.c
src/vi_svga.c
+1
-1
vi_xlib.c
src/vi_xlib.c
+1
-1
wl_act2.c
src/wl_act2.c
+2
-2
wl_draw.c
src/wl_draw.c
+4
-4
wl_menu.c
src/wl_menu.c
+1
-1
No files found.
src/Makefile
View file @
d2e486e1
CC
=
gcc
#CFLAGS =
-O6 -fomit-frame-pointer -ffast-math -funroll-loops -mpentiumpro -mcpu=pentiumpro -march=pentiumpro
CFLAGS
=
-g
-Wall
CFLAGS
=
-Wall
-O6
-fomit-frame-pointer
-ffast-math
-funroll-loops
-mpentiumpro
-mcpu
=
pentiumpro
-march
=
pentiumpro
#
CFLAGS = -g -Wall
#CFLAGS = -g
#CFLAGS = -Os
OBJS
=
objs.o misc.o id_ca.o id_sd.o id_vh.o id_us.o
\
...
...
src/id_ca.c
View file @
d2e486e1
...
...
@@ -787,20 +787,20 @@ void CA_UnCacheAudioChunk(int chunk)
======================
*/
void
CA_LoadAllSounds
(
void
)
void
CA_LoadAllSounds
(
)
{
unsigned
start
,
i
;
unsigned
start
,
i
;
switch
(
oldsoundmode
)
{
case
sdm_Off
:
goto
cachein
;
case
sdm_PC
:
start
=
STARTPCSOUNDS
;
break
;
case
sdm_AdLib
:
start
=
STARTADLIBSOUNDS
;
break
;
default:
goto
cachein
;
}
for
(
i
=
0
;
i
<
NUMSOUNDS
;
i
++
,
start
++
)
...
...
@@ -812,14 +812,14 @@ cachein:
switch
(
SoundMode
)
{
case
sdm_Off
:
return
;
case
sdm_PC
:
start
=
STARTPCSOUNDS
;
break
;
case
sdm_AdLib
:
start
=
STARTADLIBSOUNDS
;
break
;
default:
return
;
}
for
(
i
=
0
;
i
<
NUMSOUNDS
;
i
++
,
start
++
)
...
...
src/id_us.c
View file @
d2e486e1
...
...
@@ -299,7 +299,7 @@ boolean US_LineInput(int x,int y,char *buf,char *def,boolean escok,
{
boolean
redraw
,
cursorvis
,
cursormoved
,
done
,
result
;
done
,
result
=
true
;
ScanCode
sc
;
char
c
,
s
[
MaxString
],
olds
[
MaxString
];
...
...
src/version.h
View file @
d2e486e1
...
...
@@ -6,7 +6,7 @@
/* SDM = 2 */
/* SOD = 3 */
#ifndef WMODE
#define WMODE
3
#define WMODE
1
#endif
#if WMODE == 0
...
...
src/vi_glx.c
View file @
d2e486e1
...
...
@@ -768,7 +768,7 @@ void IN_ClearKeysDown(void)
///////////////////////////////////////////////////////////////////////////
void
IN_ReadControl
(
int
player
,
ControlInfo
*
info
)
{
boolean
realdelta
;
boolean
realdelta
=
false
;
word
buttons
;
int
dx
,
dy
;
Motion
mx
,
my
;
...
...
src/vi_svga.c
View file @
d2e486e1
...
...
@@ -605,7 +605,7 @@ void IN_ClearKeysDown(void)
///////////////////////////////////////////////////////////////////////////
void
IN_ReadControl
(
int
player
,
ControlInfo
*
info
)
{
boolean
realdelta
;
boolean
realdelta
=
false
;
word
buttons
;
int
dx
,
dy
;
Motion
mx
,
my
;
...
...
src/vi_xlib.c
View file @
d2e486e1
...
...
@@ -1019,7 +1019,7 @@ void IN_ClearKeysDown(void)
///////////////////////////////////////////////////////////////////////////
void
IN_ReadControl
(
int
player
,
ControlInfo
*
info
)
{
boolean
realdelta
;
boolean
realdelta
=
false
;
word
buttons
;
int
dx
,
dy
;
Motion
mx
,
my
;
...
...
src/wl_act2.c
View file @
d2e486e1
...
...
@@ -341,7 +341,7 @@ void T_Projectile (objtype *ob)
damage
=
(
US_RndT
()
>>
3
);
break
;
default:
break
;
return
;
}
TakeDamage
(
damage
,
ob
);
...
...
@@ -832,7 +832,7 @@ statetype s_gretelshoot8 = {false,SPR_GRETEL_SHOOT1,10,NULL,NULL,&s_gretelchase
void
SpawnStand
(
enemy_t
which
,
int
tilex
,
int
tiley
,
int
dir
)
{
word
*
map
,
tile
;
word
*
map
,
tile
=
0
;
switch
(
which
)
{
...
...
src/wl_draw.c
View file @
d2e486e1
...
...
@@ -251,9 +251,9 @@ void ScalePost(byte *wall, int texture)
====================
*/
void
HitHorizDoor
(
void
)
void
HitHorizDoor
(
)
{
unsigned
texture
,
doorpage
,
doornum
;
unsigned
texture
,
doorpage
=
0
,
doornum
;
byte
*
wall
;
doornum
=
tilehit
&
0x7f
;
...
...
@@ -293,9 +293,9 @@ void HitHorizDoor (void)
====================
*/
void
HitVertDoor
(
void
)
void
HitVertDoor
(
)
{
unsigned
texture
,
doorpage
,
doornum
;
unsigned
texture
,
doorpage
=
0
,
doornum
;
byte
*
wall
;
doornum
=
tilehit
&
0x7f
;
...
...
src/wl_menu.c
View file @
d2e486e1
...
...
@@ -1876,7 +1876,7 @@ int moveorder[4]={LEFT,RIGHT,FWRD,BKWD};
void
EnterCtrlData
(
int
index
,
CustomCtrls
*
cust
,
void
(
*
DrawRtn
)(
int
),
void
(
*
PrintRtn
)(
int
),
int
type
)
{
int
j
,
exit
,
tick
,
redraw
,
which
,
x
,
picked
;
int
j
,
exit
,
tick
,
redraw
,
which
=
0
,
x
=
0
,
picked
;
ControlInfo
ci
;
ShootSnd
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment