View previous topic :: View next topic |
Author |
Message |
cxiong
Joined: 09 Sep 2003 Posts: 52
|
Turn - Off Warning message 203. |
Posted: Thu Oct 14, 2004 12:45 pm |
|
|
I always have this message display after I compiled my code? Anybody know how to turn it off?
Code: | Executing: "C:\Program Files\PICC\Ccsc.exe" "cc16876a.c" +FM +DF +LN +T -A +M +Z +Y=9 +EA
>>> Warning 203 "C:\PICC\PCM\cc16876a.c" Line 29(1,1): Condition always TRUE
Memory usage: ROM=2% RAM=5% - 5%
0 Errors, 1 Warnings.
Loaded C:\PICC\PCM\cc16876a.cof
BUILD SUCCEEDED: Thu Oct 14 14:39:31 2004
|
|
|
|
Will Reeve
Joined: 30 Oct 2003 Posts: 209 Location: Norfolk, England
|
|
Posted: Thu Oct 14, 2004 12:57 pm |
|
|
Post line 29 and a couple of lines above!
Will |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Oct 14, 2004 1:16 pm |
|
|
Its the while(1) loop. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Oct 14, 2004 1:29 pm |
|
|
It's in the README.TXT file. Sample usage:
#ignore_warnings 202, 203 |
|
|
Trampas
Joined: 04 Sep 2004 Posts: 89 Location: NC
|
|
Posted: Thu Oct 14, 2004 7:03 pm |
|
|
That would be something great to put in the manual!
Trampas |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Oct 14, 2004 7:15 pm |
|
|
Its in there ;)
Quote: |
#IGNORE_WARNINGS
Syntax:
#ignore_warnings ALL
#IGNORE_WARNINGS NONE
#IGNORE_WARNINGS warnings
Elements:
warnings is one or more warning numbers separated by commas
Purpose:
This function will suppress warning messages from the compiler. ALL indicates no warning will be generated. NONE indicates all warnings will be generated. If numbers are listed then those warnings are suppressed.
Examples:
#ignore_warnings 203
while(TRUE) {
#ignore_warnings NONE
Example Files:
None
Also See:
Warning messages
|
|
|
|
Trampas
Joined: 04 Sep 2004 Posts: 89 Location: NC
|
|
Posted: Thu Oct 14, 2004 7:57 pm |
|
|
Humm, must have missed it. I was wondering how to do the same thing...
Trampas |
|
|
|