[opendemo-devel] compiler warnings
Status: Beta
Brought to you by:
girlich
From: Dr. U. G. <Uwe...@ph...> - 2002-01-30 17:41:36
|
Hello! I'm currently hunting for compiler warnings from GCC. It may be, that we just overlooked some strange warning, which could cause all our current problems. I just corrected a few small int/size_t comparision problems but they are not so severe. But what about the macro #define OD_ENTISACTIVE(ent) \ ((ent)->r.linked \ && !((ent)->r.svFlags & SVF_NOCLIENT) \ && (((ent)->r.svFlags & (SVF_BROADCAST|SVF_PORTAL)) || (ent)->s.modelindex \ || (ent)->s.event || (ent)->s.loopSound) || (ent)->s.eType) Is this correct? We have in effect A && !B && C || D I would really appreciate some parentheses. My C book tells me, that && is more important than ||, so we have ( A && !B && C ) || D Was this the desired? Bye, Uwe |