Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 45320 - GCC error parser turns some warnings into errors
Summary: GCC error parser turns some warnings into errors
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 2.0   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-21 15:26 EDT by John Dance CLA
Modified: 2010-05-28 16:52 EDT (History)
1 user (show)

See Also:


Attachments
This is a quick fix, really there should only be one error/warning issued. (2.31 KB, patch)
2004-03-16 14:53 EST, Thomas Fletcher CLA
angvoz.dev: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Dance CLA 2003-10-21 15:26:17 EDT
Windows XP, CDT 1.2rc1

The error parser turns some warnings into errors.  The best way to demonstrate 
this is with a concrete example.  Below is the output from the c-build window 
showing several warnings from the header files:

#### start of console output
make -k clean all 
rm -rf obj/*
m68k-palmos-gcc -c PuzzleApp.c  -I./ -I-  -IC:\PalmDev\sdk-4\include  -
IC:\PalmDev\sdk-4\include\Dynamic  -IC:\PalmDev\sdk-4\include\Core  -
IC:\PalmDev\sdk-4\include\Core\UI  -IC:\PalmDev\sdk-4\include\Core\System  -
IC:\PalmDev\sdk-4\include\Core\System\Unix  -IC:\PalmDev\sdk-4
\include\Core\Hardware  -IC:\PalmDev\sdk-4\include\libraries  -IC:\PalmDev\sdk-
4\include\libraries\Telephony  -IC:\PalmDev\sdk-4
\include\libraries\Telephony\UI  -IC:\PalmDev\sdk-4\include\libraries\Sms  -
IC:\PalmDev\sdk-4\include\libraries\Pdi  -IC:\PalmDev\sdk-4
\include\libraries\PalmOSGlue  -IC:\PalmDev\sdk-4\include\libraries\Lz77  -
IC:\PalmDev\sdk-4\include\libraries\INet  -IC:\PalmDev\sdk-4
\include\libraries\exglocal  -IC:\PalmDev\sdk-4\include\Extensions  -
IC:\PalmDev\sdk-4\include\Extensions\ExpansionMgr  -O0 -g -W -Wall   -o 
obj/PuzzleApp.o
In file included from C:/PalmDev/sdk-4/include/Core/System/ConnectionMgr.h:35,
                 from C:/PalmDev/sdk-4/include/Core/System/SystemPublic.h:34,
                 from C:/PalmDev/sdk-4/include/PalmOS.h:27,
                 from PuzzleApp.c:18:
C:/PalmDev/sdk-4/include/Core/System/ModemMgr.h:104: warning: ignoring 
pragma: ;
C:/PalmDev/sdk-4/include/Core/System/ModemMgr.h:129: warning: ignoring 
pragma: ;
In file included from C:/PalmDev/sdk-4/include/Core/System/SystemPublic.h:43,
                 from C:/PalmDev/sdk-4/include/PalmOS.h:27,
                 from PuzzleApp.c:18:
C:/PalmDev/sdk-4/include/Core/System/ExgLib.h:69: warning: ignoring pragma: 2
In file included from C:/PalmDev/sdk-4/include/Core/System/NetBitUtils.h:32,
                 from C:/PalmDev/sdk-4/include/Core/System/SystemPublic.h:59,
                 from C:/PalmDev/sdk-4/include/PalmOS.h:27,
                 from PuzzleApp.c:18:
C:/PalmDev/sdk-4/include/Core/System/NetMgr.h:550: warning: ignoring pragma: ;
C:/PalmDev/sdk-4/include/Core/System/NetMgr.h:727: warning: ignoring pragma: ;
C:/PalmDev/sdk-4/include/Core/System/NetMgr.h:985: warning: ignoring pragma: ;
C:/PalmDev/sdk-4/include/Core/System/NetMgr.h:1234: warning: ignoring pragma: ;
PuzzleApp.c: In function `MainFormInit':
PuzzleApp.c:934: warning: unused parameter `frm'
PuzzleApp.c: In function `PilotMain':
PuzzleApp.c:1129: warning: unused parameter `cmdPBP'

#### end of console output
Notice that there are no errors, only warnings.
However, the parser turns one of those pragma warnings into an error.  Here is 
the output from the task list:

Kind	Status	Priority	Description	Resource	In Folder
	Location
Error			[from PuzzleApp.c]	PalmOS_Puzzle		line 18
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/ModemMgr.h]	PalmOS_Puzzle		line 104
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/ModemMgr.h]	PalmOS_Puzzle		line 129
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/NetMgr.h]	PalmOS_Puzzle		line 550
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/NetMgr.h]	PalmOS_Puzzle		line 727
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/NetMgr.h]	PalmOS_Puzzle		line 985
Warning			ignoring pragma: ;[C:/PalmDev/sdk-
4/include/Core/System/NetMgr.h]	PalmOS_Puzzle		line 1234
Warning			ignoring pragma: 2[C:/PalmDev/sdk-
4/include/Core/System/ExgLib.h]	PalmOS_Puzzle		line 69
Warning			unused parameter `cmdPBP'	PuzzleApp.c
	PalmOS_Puzzle	line 1129
Warning			unused parameter `frm'	PuzzleApp.c	PalmOS_Puzzle
	line 934
Comment 1 John Camelon CLA 2003-10-21 15:30:58 EDT
This relates to the error parser Alain ... 
Comment 2 Thomas Fletcher CLA 2004-03-16 14:53:18 EST
Created attachment 8608 [details]
This is a quick fix, really there should only be one error/warning issued.
Comment 3 Alain Magloire CLA 2004-03-16 16:13:37 EST
Thomas send a patch that should take care of this in the head.
Fix in the head.
Comment 4 Alain Magloire CLA 2004-03-17 09:59:06 EST
Applied to the 1.2 branch