Clean up all the "set but not used" warnings.

gcc on my system is failing to treat this specific warning as an error :/
This commit is contained in:
Bill Currie 2011-06-19 10:48:02 +09:00
parent dedda7596d
commit 0f7390dd60
32 changed files with 41 additions and 69 deletions

View file

@ -4092,6 +4092,8 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
POP_FAILURE_POINT (sdummy, pdummy, POP_FAILURE_POINT (sdummy, pdummy,
dummy_low_reg, dummy_high_reg, dummy_low_reg, dummy_high_reg,
reg_dummy, reg_dummy, reg_info_dummy); reg_dummy, reg_dummy, reg_info_dummy);
(void)pdummy;
(void)sdummy;
} }
/* Note fall through. */ /* Note fall through. */

View file

@ -331,7 +331,6 @@ Netchan_Transmit (netchan_t *chan, int length, byte *data)
qboolean qboolean
Netchan_Process (netchan_t *chan) Netchan_Process (netchan_t *chan)
{ {
int qport;
unsigned int reliable_ack, reliable_message, sequence, sequence_ack; unsigned int reliable_ack, reliable_message, sequence, sequence_ack;
if (!net_blocksend) if (!net_blocksend)
@ -343,9 +342,9 @@ Netchan_Process (netchan_t *chan)
sequence = MSG_ReadLong (net_message); sequence = MSG_ReadLong (net_message);
sequence_ack = MSG_ReadLong (net_message); sequence_ack = MSG_ReadLong (net_message);
// read the qport if we are a server // read the qport if we are a server, but drop it
if (chan->flags & NC_READ_QPORT) if (chan->flags & NC_READ_QPORT)
qport = MSG_ReadShort (net_message); MSG_ReadShort (net_message);
reliable_message = sequence >> 31; reliable_message = sequence >> 31;
reliable_ack = sequence_ack >> 31; reliable_ack = sequence_ack >> 31;

View file

@ -528,9 +528,9 @@ Test_Poll (void *unused)
connectTime = MSG_ReadLong (net_message); connectTime = MSG_ReadLong (net_message);
strcpy (address, MSG_ReadString (net_message)); strcpy (address, MSG_ReadString (net_message));
Sys_Printf ("%s\n frags:%3i colors:%u %u time:%u\n %s\n", name, Sys_Printf ("%d, %s\n frags:%3i colors:%u %u time:%u\n %s\n",
frags, colors >> 4, colors & 0x0f, connectTime / 60, playerNumber, name, frags, colors >> 4, colors & 0x0f,
address); connectTime / 60, address);
} }
testPollCount--; testPollCount--;

View file

@ -771,14 +771,13 @@ BuildSurfaceDisplayList (msurface_t *fa)
{ {
float s, t; float s, t;
float *vec; float *vec;
int lindex, lnumverts, vertpage, i; int lindex, lnumverts, i;
glpoly_t *poly; glpoly_t *poly;
medge_t *pedges, *r_pedge; medge_t *pedges, *r_pedge;
// reconstruct the polygon // reconstruct the polygon
pedges = currentmodel->edges; pedges = currentmodel->edges;
lnumverts = fa->numedges; lnumverts = fa->numedges;
vertpage = 0;
// draw texture // draw texture
poly = Hunk_Alloc (sizeof (glpoly_t) + (lnumverts - 4) * poly = Hunk_Alloc (sizeof (glpoly_t) + (lnumverts - 4) *

View file

@ -54,11 +54,11 @@ R_TimeGraph (void)
static int timex; static int timex;
int a; int a;
int l; int l;
float r_time2; //XXX float r_time2;
static int r_timings[MAX_TIMINGS]; static int r_timings[MAX_TIMINGS];
int x; int x;
r_time2 = Sys_DoubleTime (); //XXX r_time2 = Sys_DoubleTime ();
a = graphval; a = graphval;
@ -84,7 +84,7 @@ R_TimeGraph (void)
void void
R_ZGraph (void) R_ZGraph (void)
{ {
int a, x, w, i; int x, w;
static int height[256]; static int height[256];
if (r_refdef.vrect.width <= 256) if (r_refdef.vrect.width <= 256)
@ -95,8 +95,5 @@ R_ZGraph (void)
height[r_framecount & 255] = ((int) r_origin[2]) & 31; height[r_framecount & 255] = ((int) r_origin[2]) & 31;
x = 0; x = 0;
for (a = 0; a < w; a++) {
i = (r_framecount - a) & 255;
}
R_LineGraph (x, r_refdef.vrect.height - 2, height, w); R_LineGraph (x, r_refdef.vrect.height - 2, height, w);
} }

View file

@ -154,9 +154,9 @@ R_RecursiveMarkLights (const vec3_t lightorigin, dlight_t *light, int bit,
float ndist, maxdist; float ndist, maxdist;
mplane_t *splitplane; mplane_t *splitplane;
msurface_t *surf; msurface_t *surf;
mvertex_t *vertices; //XXX mvertex_t *vertices;
vertices = r_worldentity.model->vertexes; //XXX vertices = r_worldentity.model->vertexes;
maxdist = light->radius; maxdist = light->radius;
loc0: loc0:

View file

@ -109,12 +109,9 @@ D_DrawSolidSurface (surf_t *surf, int color)
static void static void
D_CalcGradients (msurface_t *pface) D_CalcGradients (msurface_t *pface)
{ {
mplane_t *pplane;
float mipscale, t; float mipscale, t;
vec3_t p_temp1, p_saxis, p_taxis; vec3_t p_temp1, p_saxis, p_taxis;
pplane = pface->plane;
mipscale = 1.0 / (float) (1 << miplevel); mipscale = 1.0 / (float) (1 << miplevel);
TransformVector (pface->texinfo->vecs[0], p_saxis); TransformVector (pface->texinfo->vecs[0], p_saxis);

View file

@ -139,12 +139,9 @@ D_DrawSolidSurface (surf_t *surf, int color)
static void static void
D_CalcGradients (msurface_t *pface) D_CalcGradients (msurface_t *pface)
{ {
mplane_t *pplane;
float mipscale, t; float mipscale, t;
vec3_t p_temp1, p_saxis, p_taxis; vec3_t p_temp1, p_saxis, p_taxis;
pplane = pface->plane;
mipscale = 1.0 / (float) (1 << miplevel); mipscale = 1.0 / (float) (1 << miplevel);
TransformVector (pface->texinfo->vecs[0], p_saxis); TransformVector (pface->texinfo->vecs[0], p_saxis);

View file

@ -199,13 +199,13 @@ static void
XLateKey (XKeyEvent * ev, int *k, int *u) XLateKey (XKeyEvent * ev, int *k, int *u)
{ {
char buffer[4]; char buffer[4];
int bytes, unicode; int unicode;
int key = 0; int key = 0;
KeySym keysym, shifted_keysym; KeySym keysym, shifted_keysym;
XComposeStatus compose; XComposeStatus compose;
keysym = XLookupKeysym (ev, 0); keysym = XLookupKeysym (ev, 0);
bytes = XLookupString (ev, buffer, sizeof(buffer), &shifted_keysym, XLookupString (ev, buffer, sizeof(buffer), &shifted_keysym,
&compose); &compose);
unicode = (byte) buffer[0]; unicode = (byte) buffer[0];

View file

@ -283,7 +283,8 @@ VID_SetMode (const char *name, unsigned char *palette)
struct fb_var_screeninfo var; struct fb_var_screeninfo var;
struct fb_fix_screeninfo fix; struct fb_fix_screeninfo fix;
int err; int err;
unsigned long smem_start, smem_offset; //unsigned long smem_start;
unsigned long smem_offset;
long pagesize, pagemask; long pagesize, pagemask;
errno = 0; errno = 0;
@ -329,7 +330,7 @@ VID_SetMode (const char *name, unsigned char *palette)
err = ioctl(fb_fd, FBIOGET_FSCREENINFO, &fix); err = ioctl(fb_fd, FBIOGET_FSCREENINFO, &fix);
if (err) if (err)
Sys_Error ("Video mode failed: %s", name); Sys_Error ("Video mode failed: %s", name);
smem_start = (unsigned long)fix.smem_start & pagemask; //smem_start = (unsigned long)fix.smem_start & pagemask;
smem_offset = (unsigned long)fix.smem_start & ~pagemask; smem_offset = (unsigned long)fix.smem_start & ~pagemask;
fb_map_length = (smem_offset+fix.smem_len+~pagemask) & pagemask; fb_map_length = (smem_offset+fix.smem_len+~pagemask) & pagemask;
fb_map_addr = mmap(0, fb_map_length, PROT_WRITE, MAP_SHARED, fb_map_addr = mmap(0, fb_map_length, PROT_WRITE, MAP_SHARED,

View file

@ -924,6 +924,7 @@ PF_aim (progs_t *pr)
ent = P_EDICT (pr, 0); ent = P_EDICT (pr, 0);
speed = P_FLOAT (pr, 1); speed = P_FLOAT (pr, 1);
(void)speed; //FIXME
VectorCopy (SVvector (ent, origin), start); VectorCopy (SVvector (ent, origin), start);
start[2] += 20; start[2] += 20;

View file

@ -651,7 +651,6 @@ void
CL_ParsePlayerinfo (void) CL_ParsePlayerinfo (void)
{ {
int flags, msec, num, i; int flags, msec, num, i;
player_info_t *info;
player_state_t *state; player_state_t *state;
num = MSG_ReadByte (net_message); num = MSG_ReadByte (net_message);
@ -663,7 +662,6 @@ CL_ParsePlayerinfo (void)
return; return;
} }
info = &cl.players[num];
state = &cl.frames[parsecountmod].playerstate[num]; state = &cl.frames[parsecountmod].playerstate[num];
state->pls.number = num; state->pls.number = num;

View file

@ -855,7 +855,7 @@ static void
CL_ConnectionlessPacket (void) CL_ConnectionlessPacket (void)
{ {
const char *s; const char *s;
int c, clcp_temp; int c;
MSG_BeginReading (net_message); MSG_BeginReading (net_message);
MSG_ReadLong (net_message); // skip the -1 MSG_ReadLong (net_message); // skip the -1
@ -863,7 +863,6 @@ CL_ConnectionlessPacket (void)
c = MSG_ReadByte (net_message); c = MSG_ReadByte (net_message);
if (net_message->badread) if (net_message->badread)
return; return;
clcp_temp = 0;
if (!cls.demoplayback if (!cls.demoplayback
&& (cl_paranoid->int_val && (cl_paranoid->int_val
|| !NET_CompareAdr (net_from, cls.server_addr))) || !NET_CompareAdr (net_from, cls.server_addr)))
@ -1000,7 +999,7 @@ CL_ConnectionlessPacket (void)
if (c == M2C_MASTER_REPLY) if (c == M2C_MASTER_REPLY)
{ {
Sys_Printf ("Master Server Reply\n"); Sys_Printf ("Master Server Reply\n");
clcp_temp = MSG_ReadByte (net_message); MSG_ReadByte (net_message);
s = MSG_ReadString (net_message); s = MSG_ReadString (net_message);
MSL_ParseServerList (s); MSL_ParseServerList (s);
return; return;

View file

@ -54,7 +54,7 @@ void
CL_NetGraph (void) CL_NetGraph (void)
{ {
char st[80]; char st[80];
int lost, a, l, x, y, h, i; int lost, a, l, x, y, i;
if (!r_netgraph->int_val) if (!r_netgraph->int_val)
return; return;
@ -62,8 +62,6 @@ CL_NetGraph (void)
x = hudswap ? vid.conwidth - (NET_TIMINGS + 16): 0; x = hudswap ? vid.conwidth - (NET_TIMINGS + 16): 0;
y = vid.conheight - sb_lines - 24 - r_graphheight->int_val - 1; y = vid.conheight - sb_lines - 24 - r_graphheight->int_val - 1;
h = r_graphheight->int_val % 8;
if (r_netgraph_box->int_val) if (r_netgraph_box->int_val)
Draw_TextBox (x, y, NET_TIMINGS / 8, r_graphheight->int_val / 8 + 1, Draw_TextBox (x, y, NET_TIMINGS / 8, r_graphheight->int_val / 8 + 1,
r_netgraph_alpha->value * 255); r_netgraph_alpha->value * 255);

View file

@ -726,7 +726,7 @@ CL_ParseServerData (void)
{ {
const char *str; const char *str;
int protover; int protover;
qboolean cflag = false; //FIXME qboolean cflag = false;
Sys_MaskPrintf (SYS_DEV, "Serverdata packet received.\n"); Sys_MaskPrintf (SYS_DEV, "Serverdata packet received.\n");
@ -750,7 +750,7 @@ CL_ParseServerData (void)
if (!strequal (qfs_gamedir->gamedir, str)) { if (!strequal (qfs_gamedir->gamedir, str)) {
// save current config // save current config
Host_WriteConfiguration (); Host_WriteConfiguration ();
cflag = true; //FIXME cflag = true;
QFS_Gamedir (str); QFS_Gamedir (str);
} }

View file

@ -625,6 +625,7 @@ CL_ParseProjectiles (qboolean nail2)
num = MSG_ReadByte (net_message); num = MSG_ReadByte (net_message);
else else
num = 0; num = 0;
(void) num; //FIXME
for (j = 0; j < 6; j++) for (j = 0; j < 6; j++)
bits[j] = MSG_ReadByte (net_message); bits[j] = MSG_ReadByte (net_message);

View file

@ -135,12 +135,11 @@ locs_load (const char *filename)
char tmp[PATH_MAX]; char tmp[PATH_MAX];
char *t1, *t2; char *t1, *t2;
const char *line; const char *line;
int templength = 0;
vec3_t loc; vec3_t loc;
QFile *file; QFile *file;
snprintf (tmp, sizeof (tmp), "maps/%s", filename); snprintf (tmp, sizeof (tmp), "maps/%s", filename);
templength = QFS_FOpenFile (tmp, &file); QFS_FOpenFile (tmp, &file);
if (!file) { if (!file) {
Sys_Printf ("Couldn't load %s\n", tmp); Sys_Printf ("Couldn't load %s\n", tmp);
return; return;

View file

@ -262,7 +262,7 @@ PM_GroundMove (void)
{ {
float downdist, updist; float downdist, updist;
trace_t trace; trace_t trace;
vec3_t start, dest; vec3_t dest;
vec3_t original, originalvel, down, up, downvel; vec3_t original, originalvel, down, up, downvel;
pmove.velocity[2] = 0; pmove.velocity[2] = 0;
@ -275,7 +275,6 @@ PM_GroundMove (void)
dest[2] = pmove.origin[2]; dest[2] = pmove.origin[2];
// first try moving directly to the next spot // first try moving directly to the next spot
VectorCopy (dest, start);
trace = PM_PlayerMove (pmove.origin, dest); trace = PM_PlayerMove (pmove.origin, dest);
if (trace.fraction == 1) { if (trace.fraction == 1) {
VectorCopy (trace.endpos, pmove.origin); VectorCopy (trace.endpos, pmove.origin);

View file

@ -993,7 +993,7 @@ void
Sbar_TeamOverlay (view_t *view) Sbar_TeamOverlay (view_t *view)
{ {
char num[20]; char num[20];
int pavg, plow, phigh, i, k, l, x, y; int pavg, plow, phigh, i, k, x, y;
team_t *tm; team_t *tm;
info_key_t *player_team = cl.players[cl.playernum].team; info_key_t *player_team = cl.players[cl.playernum].team;
@ -1020,8 +1020,6 @@ Sbar_TeamOverlay (view_t *view)
Sbar_SortTeams (); Sbar_SortTeams ();
// draw the text // draw the text
l = scoreboardlines;
for (i = 0; i < scoreboardteams && y <= view->ylen - 10; i++) { for (i = 0; i < scoreboardteams && y <= view->ylen - 10; i++) {
k = teamsort[i]; k = teamsort[i];
tm = teams + k; tm = teams + k;
@ -1122,6 +1120,7 @@ Sbar_LogFrags (void)
// draw pl // draw pl
p = s->pl; p = s->pl;
(void) p; //FIXME
// get time // get time
if (cl.intermission) if (cl.intermission)

View file

@ -630,20 +630,20 @@ SV_Punish (int mode)
dstring_t *text = dstring_new(); dstring_t *text = dstring_new();
const char *cmd = 0; const char *cmd = 0;
const char *cmd_do = 0; const char *cmd_do = 0;
const char *cmd_undo = 0; //FIXME const char *cmd_undo = 0;
int field_offs = 0; int field_offs = 0;
switch (mode) { switch (mode) {
case 0: case 0:
cmd = "cuff"; cmd = "cuff";
cmd_do = "cuffed"; cmd_do = "cuffed";
cmd_undo = "un-cuffed"; //FIXME cmd_undo = "un-cuffed";
field_offs = field_offset (client_t, cuff_time); field_offs = field_offset (client_t, cuff_time);
break; break;
case 1: case 1:
cmd = "mute"; cmd = "mute";
cmd_do = "muted"; cmd_do = "muted";
cmd_undo = "can speak"; //FIXME cmd_undo = "can speak";
field_offs = field_offset (client_t, lockedtill); field_offs = field_offset (client_t, lockedtill);
break; break;
} }

View file

@ -1755,10 +1755,8 @@ SV_ReadPackets (void)
//NOTE star volatile, not volatile star //NOTE star volatile, not volatile star
client_t *volatile cl; // * volatile for longjmp client_t *volatile cl; // * volatile for longjmp
int qport, i; int qport, i;
qboolean good;
double until; double until;
good = false;
while (NET_GetPacket ()) { while (NET_GetPacket ()) {
if (net_packetlog->int_val) if (net_packetlog->int_val)
Log_Incoming_Packet (net_message->message->data, Log_Incoming_Packet (net_message->message->data,
@ -1801,7 +1799,6 @@ SV_ReadPackets (void)
if (Netchan_Process (&cl->netchan)) { if (Netchan_Process (&cl->netchan)) {
// this is a valid, sequenced packet, so process it // this is a valid, sequenced packet, so process it
svs.stats.packets++; svs.stats.packets++;
good = true;
cl->send_message = true; // reply at end of frame cl->send_message = true; // reply at end of frame
if (cl->state != cs_zombie) { if (cl->state != cs_zombie) {
SV_ExecuteClientMessage (cl); SV_ExecuteClientMessage (cl);

View file

@ -958,6 +958,7 @@ PF_aim (progs_t *pr)
} }
speed = P_FLOAT (pr, 1); speed = P_FLOAT (pr, 1);
(void) speed; //FIXME
VectorCopy (SVvector (ent, origin), start); VectorCopy (SVvector (ent, origin), start);
start[2] += 20; start[2] += 20;

View file

@ -561,6 +561,7 @@ PF_getwave (progs_t *pr)
modes = (unsigned int) P_FLOAT (pr, 1); modes = (unsigned int) P_FLOAT (pr, 1);
balance = P_FLOAT (pr, 4); balance = P_FLOAT (pr, 4);
(void) balance; //FIXME
if (modes & GWAVE_USEOFFSET) if (modes & GWAVE_USEOFFSET)
offset = P_FLOAT (pr, 5); offset = P_FLOAT (pr, 5);

View file

@ -534,7 +534,6 @@ SV_qtvChanging (void)
{ {
sv_qtv_t *proxy; sv_qtv_t *proxy;
int i, len; int i, len;
sizebuf_t *buf;
const char *msg; const char *msg;
msg = va ("%cchanging", qtv_stringcmd); msg = va ("%cchanging", qtv_stringcmd);
@ -545,7 +544,7 @@ SV_qtvChanging (void)
continue; continue;
SVR_Pause (proxy->recorder); SVR_Pause (proxy->recorder);
buf = MSG_ReliableCheckBlock (&proxy->backbuf, len); MSG_ReliableCheckBlock (&proxy->backbuf, len);
MSG_ReliableWrite_SZ (&proxy->backbuf, msg, len); MSG_ReliableWrite_SZ (&proxy->backbuf, msg, len);
} }
SV_qtvSendMessages (); SV_qtvSendMessages ();
@ -556,7 +555,6 @@ SV_qtvReconnect (void)
{ {
sv_qtv_t *proxy; sv_qtv_t *proxy;
int i, len; int i, len;
sizebuf_t *buf;
const char *msg; const char *msg;
msg = va ("%creconnect", qtv_stringcmd); msg = va ("%creconnect", qtv_stringcmd);
@ -566,7 +564,7 @@ SV_qtvReconnect (void)
if (!proxy->info) if (!proxy->info)
continue; continue;
buf = MSG_ReliableCheckBlock (&proxy->backbuf, len); MSG_ReliableCheckBlock (&proxy->backbuf, len);
MSG_ReliableWrite_SZ (&proxy->backbuf, msg, len); MSG_ReliableWrite_SZ (&proxy->backbuf, msg, len);
} }
} }

View file

@ -213,7 +213,7 @@ write_msg (sizebuf_t *msg, int type, int to, float time, sizebuf_t *dst)
static void static void
write_to_msg (int type, int to, float time, sizebuf_t *dst) write_to_msg (int type, int to, float time, sizebuf_t *dst)
{ {
int pos = 0, oldm, oldd; int pos = 0;
header_t *p; header_t *p;
int size; int size;
sizebuf_t msg; sizebuf_t msg;
@ -221,8 +221,6 @@ write_to_msg (int type, int to, float time, sizebuf_t *dst)
p = (header_t *) rec.dbuf->sz.data; p = (header_t *) rec.dbuf->sz.data;
rec.dbuf->h = NULL; rec.dbuf->h = NULL;
oldm = rec.dbuf->bufsize;
oldd = rec.dbuffer.start;
while (pos < rec.dbuf->bufsize) { while (pos < rec.dbuf->bufsize) {
size = p->size; size = p->size;
pos += HEADER + size; pos += HEADER + size;

View file

@ -385,7 +385,7 @@ void
SV_StartSound (edict_t *entity, int channel, const char *sample, int volume, SV_StartSound (edict_t *entity, int channel, const char *sample, int volume,
float attenuation) float attenuation)
{ {
int ent, field_mask, sound_num, i; int ent, sound_num, i;
qboolean use_phs; qboolean use_phs;
qboolean reliable = false; qboolean reliable = false;
vec3_t origin; vec3_t origin;
@ -427,7 +427,6 @@ SV_StartSound (edict_t *entity, int channel, const char *sample, int volume,
channel = (ent << 3) | channel; channel = (ent << 3) | channel;
field_mask = 0;
if (volume != DEFAULT_SOUND_PACKET_VOLUME) if (volume != DEFAULT_SOUND_PACKET_VOLUME)
channel |= SND_VOLUME; channel |= SND_VOLUME;
if (attenuation != DEFAULT_SOUND_PACKET_ATTENUATION) if (attenuation != DEFAULT_SOUND_PACKET_ATTENUATION)

View file

@ -827,7 +827,7 @@ render_map (bsp_t *bsp)
Zoffset1 = (options.z_pad * (vert2->Z - midZ) / (maxZ - minZ)); Zoffset1 = (options.z_pad * (vert2->Z - midZ) / (maxZ - minZ));
offs0 = options.image_pad + options.z_pad + (Zoffset0 * Z_Xdir); offs0 = options.image_pad + options.z_pad + (Zoffset0 * Z_Xdir);
offs1 = options.image_pad + options.z_pad + (Zoffset1 * Z_Xdir); offs1 = options.image_pad + options.z_pad + (Zoffset1 * Z_Ydir);
bresline (image, (vert1->X - minX) / options.scaledown + offs0, bresline (image, (vert1->X - minX) / options.scaledown + offs0,
(vert1->Y - minY) / options.scaledown + offs0, (vert1->Y - minY) / options.scaledown + offs0,

View file

@ -274,8 +274,6 @@ FindPlane (const plane_t *dplane, int *side)
dp = planes; dp = planes;
for (i = 0; i < numbrushplanes; i++, dp++) { for (i = 0; i < numbrushplanes; i++, dp++) {
vec3_t t;
VectorSubtract (dp->normal, pl.normal, t);
dot = DotProduct (dp->normal, pl.normal); dot = DotProduct (dp->normal, pl.normal);
if (dot > 1.0 - ANGLEEPSILON if (dot > 1.0 - ANGLEEPSILON
&& fabs(dp->dist - pl.dist) < DISTEPSILON) { // regular match && fabs(dp->dist - pl.dist) < DISTEPSILON) { // regular match

View file

@ -783,13 +783,10 @@ class_find_method (class_type_t *class_type, method_t *method)
method_t *m; method_t *m;
dstring_t *sel; dstring_t *sel;
class_t *class = 0, *start_class; class_t *class = 0, *start_class;
const char *class_name;
const char *category_name = 0;
switch (class_type->type) { switch (class_type->type) {
case ct_category: case ct_category:
methods = class_type->c.category->methods; methods = class_type->c.category->methods;
category_name = class_type->c.category->name;
class = class_type->c.category->class; class = class_type->c.category->class;
break; break;
case ct_class: case ct_class:
@ -799,7 +796,6 @@ class_find_method (class_type_t *class_type, method_t *method)
case ct_protocol: case ct_protocol:
return 0; // probably in error recovery return 0; // probably in error recovery
} }
class_name = class->name;
start_methods = methods; start_methods = methods;
start_class = class; start_class = class;
while (class) { while (class) {

View file

@ -1122,7 +1122,6 @@ build_qfo (void)
qfo_t *qfo; qfo_t *qfo;
int size; int size;
int i, j; int i, j;
qfo_mspace_t *space;
qfo_reloc_t *reloc; qfo_reloc_t *reloc;
qfo_def_t **defs; qfo_def_t **defs;
@ -1130,7 +1129,6 @@ build_qfo (void)
qfo->spaces = calloc (work->num_spaces, sizeof (qfo_mspace_t)); qfo->spaces = calloc (work->num_spaces, sizeof (qfo_mspace_t));
qfo->num_spaces = work->num_spaces; qfo->num_spaces = work->num_spaces;
for (i = 0; i < work->num_spaces; i++) { for (i = 0; i < work->num_spaces; i++) {
space = &work->spaces[i];
qfo->spaces[i].type = work->spaces[i].type; qfo->spaces[i].type = work->spaces[i].type;
qfo->spaces[i].id = work->spaces[i].id; qfo->spaces[i].id = work->spaces[i].id;
qfo->spaces[i].d = work->spaces[i].d; qfo->spaces[i].d = work->spaces[i].d;

View file

@ -258,7 +258,6 @@ convert_qfo (void)
{ {
int size; int size;
int i; int i;
ddef_t *ld;
pr.progs = qfo_to_progs (qfo, &size); pr.progs = qfo_to_progs (qfo, &size);
@ -283,7 +282,7 @@ convert_qfo (void)
pr.local_defs = P (ddef_t, locals); pr.local_defs = P (ddef_t, locals);
#undef P #undef P
ld = pr.local_defs = calloc (qfo->num_defs, sizeof (ddef_t)); pr.local_defs = calloc (qfo->num_defs, sizeof (ddef_t));
pr.auxfunction_map = calloc (pr.progs->numfunctions, pr.auxfunction_map = calloc (pr.progs->numfunctions,
sizeof (pr_auxfunction_t *)); sizeof (pr_auxfunction_t *));

View file

@ -34,6 +34,7 @@ main (int argc, char **argv)
break; break;
case 'l': case 'l':
loop_info = 1; loop_info = 1;
(void) loop_info; //FIXME
break; break;
case 's': case 's':
sample_info = 1; sample_info = 1;