avoid a warning on x ? :
Surround the code to the left of the '?' in the DESTROY_ARM(o) macro with () to quiet a warning on each use of the macro.
This commit is contained in:
+4
-4
@@ -2945,10 +2945,10 @@ destroy_arm(register struct obj *atmp)
|
|||||||
* artifact suit over a shirt. That would be a bug. Since there
|
* artifact suit over a shirt. That would be a bug. Since there
|
||||||
* aren't any, we'll just look the other way.
|
* aren't any, we'll just look the other way.
|
||||||
*/
|
*/
|
||||||
#define DESTROY_ARM(o) \
|
#define DESTROY_ARM(o) \
|
||||||
((otmp = (o)) != 0 && (!atmp || atmp == otmp) \
|
(((otmp = (o)) != 0 && (!atmp || atmp == otmp) \
|
||||||
&& (!obj_resists(otmp, 0, 90)) \
|
&& (!obj_resists(otmp, 0, 90))) \
|
||||||
? (otmp->in_use = TRUE) \
|
? (otmp->in_use = TRUE) \
|
||||||
: FALSE)
|
: FALSE)
|
||||||
|
|
||||||
if (DESTROY_ARM(uarmc)) {
|
if (DESTROY_ARM(uarmc)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user