Hi all,
Quick question: does #pragma disable_warning not work with #pragma
save/restore?
I wanted to turn off a particular warning for only a single function in
a file, but it seems disable_warning does not get saved or restored,
because it turned off that particular warning for all other code further
in the file.
The manual says: "the compiler will not warn you anymore about warning
number <nnnn>". Is the use of the word "anymore" supposed to imply that
a disable_warning pragma statement, once activated, cannot be turned off
for the remainder of the file? If so, I think that is somewhat
ambiguous, as I think most people's interpretation of the word "anymore"
(which, BTW, is two words, not one) would not imply immutability.
Perhaps this manual language should be changed to be more explicit. In
fact, I think it would be nice if the Pragmas section of the manual
explicitly stated whether each pragma can be saved and restored.
Regards,
Basil Hussain
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user