Preprocessor: redundant code
#1

Somewhere in my include:
pawn Код:
#define TIME(%0) ((%0) ? TIMER_Times[2] - TIMER_Times[1] : TIMER_Times[1] - TIMER_Times[0])
Somewhere in my test FS:
pawn Код:
printf("%d %d", TIME(0), TIME(1));
Compiler outputs:
Quote:

...pwn(16) : warning 205: redundant code: constant expression is zero
...pwn(16) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

what's the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)