We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm trying to disable some disturbing warnings (the generated code is fine; don't worry) but the only I find is the warninglevels (0, 1 or 2).
Is there any directive to disable a specific Warning in the C51 compiler?
I totally agree with you, Per.
But pitifully, it seems that the goal of the thread has been lost. I think it is not worth to discuss aboutif warnings should be shown always or not, this could become a unuseful interchange of points of view ...
The original question is still unanswered:
Has the Cx51 compiler any flag or macro or way of silence a single warning (out of the warninglevels mechanism?)
It seems that the LX51 do has it, but lamentably, the C51 seems to not have it. Could any one confirm this extreme?
"Could any one confirm this extreme?"
By reading the manual for you?
Hi Dan, I'm able to read, and I have read the whole manual without finding a solution for what I'm looking for, which, on other hand, it's something really usual in most modern compilers I have used (that the reason why I ask, because it sounds strange to me that the compiler has not such feature).
But sometimes the manuals are inaccurate, or not updated, or simply you have not understand what you have read in the first pass...
In any case, I see you don't have an answer to the question, so I presume you have not read the manuals and cannot be of help on this thread.
The question is simple, please don't loose the focus.
"The original question is still unanswered"
Also unanswered is whether you're doing an implicit or explicit cast - and, if the former, whether an explicit cast removes the warning...?
David; The simple answer is that the compiler does not support disable of warnings by warning number. Both BX51 and LX51 support disable warnings by warning number. In the dialog Options-LX51 Misc you can insert multiple individual warning numbers each separated by a comma to disable the warning. Bradford