From 4bd03bfff3935bb7e40606637cede3aff517d90b Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Wed, 3 Jul 2002 00:36:44 +0000 Subject: [PATCH] Hack to make error-on-warnings happy. *pokes taniwha* --- tools/qfcc/source/def.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index b8dd29b63..4ef66e903 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -193,7 +193,7 @@ get_def (type_t *type, const char *name, scope_t *scope, storage_class_t storage) { def_t *def = check_for_name (type, name, scope, storage); - defspace_t *space; + defspace_t *space = NULL; if (storage == st_none) return def; @@ -228,10 +228,8 @@ get_def (type_t *type, const char *name, scope_t *scope, def->ofs = new_location (type, space); } - /* - make automatic defs for the vectors elements .origin can be accessed - as .origin_x, .origin_y, and .origin_z - */ + // make automatic defs for the vectors elements .origin can be accessed + // as .origin_x, .origin_y, and .origin_z if (type->type == ev_vector && name) { vector_component (0, def, 0, scope, storage); vector_component (0, def, 1, scope, storage);