??? 01/09/07 15:43 Read: times |
#130514 - wrong warnings Responding to: ???'s previous message |
There are more warnings that fail occasionally, especially if one sometimes for a good cause departs from "guidelines" (and, as you said, still might be correct) - that's why compilers have pragmas to disable warnings *locally* (OK this does not work particularly well on SDCC I found out in the mentioned experiment). I see no problem in this.
------------- Erik Malund said:
You will not ever know when the compiler (fail to) disable and reenable the interrupts. I don't understand. Let's talk about this scheme:
I see no problem with this except it might not be too optimal - but who told C programs shall be optimal? There is no problem to fall back to "standard" "manual" disable/enable - simply don't flag the variable as critical. Can you please point me out what's fundamentally wrong on this scheme (there still might be problematic *details* of course - I am not a compiler maker). JW |