m68k subtraction and absolute value
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 2993
- Joined: Fri Aug 17, 2007 9:33 pm
-
- Very interested
- Posts: 2993
- Joined: Fri Aug 17, 2007 9:33 pm
True, but you can get other issues that compilers now generate warnings for, like this case:
The code assumes that whatever is set coming into the loop or else x has an undefined value to start. That will generate a warning in gcc, but still compile as the compiler cannot tell the state of whatever at that point.
Code: Select all
int x;
while (something)
{
if (whatever)
x = whatever = 0;
x += 1;
something = check_something();
}