If I attempt to compile vanilla 1.06 code with the recent win64-fteqccgui.exe, I got 103 warnings. With my own current project, I have a lot of the same warnings (but more of them). At a glance, some of these look like legitimate issues that may have gone undetected in vanilla Quake all this time.
However, I'm trying to figure out which of these should perhaps be fixed, and which should be ignored as they apply to my own code as well.
ai.qc:302: warning F210: Sound "vomitus/v_sight1.wav" was used but not directly precached - This seems like a legit vanilla bug. If I attempt to precache it, it says the file does not exist.
fight.qc:299: warning F306: Local "enemy_yaw" hides global with same name and type - enemy_yaw is defined locally and globally in the same file. This seems like an oversight.
ai.qc:368: warning Q203: 'FindTarget' returned nothing, expected float
ai.qc:588: warning Q203: 'CheckAnyAttack' returned nothing, expected float
weapons.qc:92: warning Q207: org duplicate definition ignored
misc.qc:179: warning Q205: Statement does not do anything
knight.qc:32: warning: Duplicate macro defined (attackb1)
oldone.qc:29: warning: Duplicate macro defined (shake12)
enforcer.qc:76: warning Q207: vec duplicate definition ignored
defs.qc:401: warning Q302: float empty_float no references.
fight.qc:298: warning Q302: float chance no references.
fight.qc:299: warning Q302: float enemy_yaw no references.
ai.qc:37: warning Q302: float current_yaw no references.
ai.qc:476: warning Q302: vector mtemp no references.
ai.qc:476: warning Q302: float mtemp_x no references.
ai.qc:476: warning Q302: float mtemp_y no references.
ai.qc:476: warning Q302: float mtemp_z no references.
ai.qc:679: warning Q302: vector delta no references.
ai.qc:679: warning Q302: float delta_x no references.
note: suppressed 68 more warnings about unreferenced variables, as you clearly don't care about the first 10.
client.qc:507: warning F307: type mismatch: void() player_pain to void(entity attacker, float damage) self.th_pain - I've got a bunch of these
doors.qc:581: warning F307: type mismatch: void() SUB_Null to void(entity attacker, float damage) self.th_pain
doors.qc:668: warning F307: type mismatch: void() fd_secret_use to void(entity attacker, float damage) self.th_pain
doors.qc:772: warning F307: type mismatch: void() fd_secret_use to void(entity attacker, float damage) self.th_pain
dog.qc:357: warning F307: type mismatch: void() dog_pain to void(entity attacker, float damage) self.th_pain
shalrath.qc:233: warning F307: type mismatch: void() shalrath_pain to void(entity attacker, float damage) self.th_pain
oldone.qc:277: warning F307: type mismatch: void() nopain to void(entity attacker, float damage) self.th_pain
subs.qc:25: warning Q206: SetMovedir: not all control paths return a value - I've got a bunch of these that a glance appear to be benign
client.qc:134: warning Q206: FindIntermission: not all control paths return a value
wizard.qc:180: warning Q206: WizardAttackFinished: not all control paths return a value
items.qc:47: warning Q105: too few parameters on call to droptofloor - I have tons of these as well
monsters.qc:75: warning Q105: too few parameters on call to droptofloor
misc.qc:249: warning Q105: too few parameters on call to droptofloor
misc.qc:281: warning Q105: too few parameters on call to droptofloor
misc.qc:536: warning Q105: too few parameters on call to makestatic
ogre.qc:249: warning Q105: too few parameters on call to ai_charge
However, I'm trying to figure out which of these should perhaps be fixed, and which should be ignored as they apply to my own code as well.
ai.qc:302: warning F210: Sound "vomitus/v_sight1.wav" was used but not directly precached - This seems like a legit vanilla bug. If I attempt to precache it, it says the file does not exist.
fight.qc:299: warning F306: Local "enemy_yaw" hides global with same name and type - enemy_yaw is defined locally and globally in the same file. This seems like an oversight.
ai.qc:368: warning Q203: 'FindTarget' returned nothing, expected float
ai.qc:588: warning Q203: 'CheckAnyAttack' returned nothing, expected float
weapons.qc:92: warning Q207: org duplicate definition ignored
misc.qc:179: warning Q205: Statement does not do anything
knight.qc:32: warning: Duplicate macro defined (attackb1)
oldone.qc:29: warning: Duplicate macro defined (shake12)
enforcer.qc:76: warning Q207: vec duplicate definition ignored
defs.qc:401: warning Q302: float empty_float no references.
fight.qc:298: warning Q302: float chance no references.
fight.qc:299: warning Q302: float enemy_yaw no references.
ai.qc:37: warning Q302: float current_yaw no references.
ai.qc:476: warning Q302: vector mtemp no references.
ai.qc:476: warning Q302: float mtemp_x no references.
ai.qc:476: warning Q302: float mtemp_y no references.
ai.qc:476: warning Q302: float mtemp_z no references.
ai.qc:679: warning Q302: vector delta no references.
ai.qc:679: warning Q302: float delta_x no references.
note: suppressed 68 more warnings about unreferenced variables, as you clearly don't care about the first 10.
client.qc:507: warning F307: type mismatch: void() player_pain to void(entity attacker, float damage) self.th_pain - I've got a bunch of these
doors.qc:581: warning F307: type mismatch: void() SUB_Null to void(entity attacker, float damage) self.th_pain
doors.qc:668: warning F307: type mismatch: void() fd_secret_use to void(entity attacker, float damage) self.th_pain
doors.qc:772: warning F307: type mismatch: void() fd_secret_use to void(entity attacker, float damage) self.th_pain
dog.qc:357: warning F307: type mismatch: void() dog_pain to void(entity attacker, float damage) self.th_pain
shalrath.qc:233: warning F307: type mismatch: void() shalrath_pain to void(entity attacker, float damage) self.th_pain
oldone.qc:277: warning F307: type mismatch: void() nopain to void(entity attacker, float damage) self.th_pain
subs.qc:25: warning Q206: SetMovedir: not all control paths return a value - I've got a bunch of these that a glance appear to be benign
client.qc:134: warning Q206: FindIntermission: not all control paths return a value
wizard.qc:180: warning Q206: WizardAttackFinished: not all control paths return a value
items.qc:47: warning Q105: too few parameters on call to droptofloor - I have tons of these as well
monsters.qc:75: warning Q105: too few parameters on call to droptofloor
misc.qc:249: warning Q105: too few parameters on call to droptofloor
misc.qc:281: warning Q105: too few parameters on call to droptofloor
misc.qc:536: warning Q105: too few parameters on call to makestatic
ogre.qc:249: warning Q105: too few parameters on call to ai_charge
Comment