switch off compiler warnings for special code areas

Post your requests and ideas on the future development of mikroC PRO for AVR.
Post Reply
Author
Message
luko
Posts: 9
Joined: 26 Feb 2009 14:36
Location: Lübeck, Germany

switch off compiler warnings for special code areas

#1 Post by luko » 11 Mar 2009 11:55

First of all: the more nitpick the compiler examines the source-code for possible bugs the merrier. thats no question.

But there are passages that are save but provoce warnings because the compiler is sometimes not as smart as the user ;)

In this case it would be nice to switch off the warnings (or change the color of the warning-text) for these passages so that the users focus remains at new warnings.

for example:

$warning off
...some code...
$warning on

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: switch off compiler warnings for special code areas

#2 Post by rajkovic » 19 Mar 2009 11:07

luko wrote:First of all: the more nitpick the compiler examines the source-code for possible bugs the merrier. thats no question.

But there are passages that are save but provoce warnings because the compiler is sometimes not as smart as the user ;)

In this case it would be nice to switch off the warnings (or change the color of the warning-text) for these passages so that the users focus remains at new warnings.

for example:

$warning off
...some code...
$warning on
will be implemented.

Post Reply

Return to “mikroC PRO for AVR Wish List”