Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Warnings being interpreted as errors
Warnings being interpreted as errors [message #199652] Fri, 17 August 2007 10:04 Go to next message
Phil Wingfield is currently offline Phil WingfieldFriend
Messages: 1
Registered: July 2009
Junior Member
Hello there,

I'm having an annoying problem with Eclipse Europa CDT on windows using
cygwin. It happens with either the internal builder or the make builder.
Below is an excerpt from the console output. The problem I'm having is
that even though the particular source file compiles correctly, some of
the warning info is being interpreted by Eclipse as errors. Please excuse
the overuse of templates, the design isn't mine :)

The lines beginning ../TerrainImportHandler.hpp:117: and
../TerrainImportHandler.hpp:1120:, with the message 'instantiated from'
followed by a method signature, show up in the problems view as errors
when actually they're just giving extra information about the following
warning. Is there anywhere I can configure them to be warnings? I know I
can filter them out in the problems view if I want but this is only a
partial solution.

Thanks for any help, the console output follows,

Phil


===========================================================

Building file: ../GDMFacade.cpp
Invoking: Cygwin C++ Compiler
g++ -D_LIB -I../../../include -I../../../thirdparty/includes
-I"C:\p_wingfield\GEDIS\source\InternalUtilities"
-I"C:\cygwin\usr\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP
-MF"GDMFacade.d" -MT"GDMFacade.d" -o"GDMFacade.o" "../GDMFacade.cpp"

...

In file included from ../GDMFacade.cpp:16:
../TerrainImportHandler.hpp: In instantiation of
`gedis::gdm::ASCDataStore<gedis::gdm::CTerrainPoint>':
../TerrainImportHandler.hpp:117: instantiated from
`gedis::gdm::CTerrainImportHandler<gedis::gdm::CTerrainPoint >'
../GDMFacade.hpp:134: instantiated from here
../TerrainImportHandler.hpp:1068: warning: `class
gedis::gdm::ASCDataStore<gedis::gdm::CTerrainPoint>' has virtual functions
but non-virtual destructor
In file included from ../GDMFacade.cpp:16:
../GDMFacade.hpp:163:33: warning: no newline at end of file
../TerrainImportHandler.hpp: In instantiation of
`gedis::gdm::ASCTile<gedis::gdm::CTerrainPoint>':
../TerrainImportHandler.hpp:1120: instantiated from
`boost::shared_ptr<const gedis::gdm::CGridObject<PointType> >
gedis::gdm::ASCDataStore<StorageType>::GetTile(const
gedis::CLatLongCoord&) [with StorageType = gedis::gdm::CTerrainPoint]'
../GDMFacade.cpp:266: instantiated from here
../TerrainImportHandler.hpp:829: warning: `class
gedis::gdm::ASCTile<gedis::gdm::CTerrainPoint>' has virtual functions but
non-virtual destructor
../../../include/GEDIS_GDM_If.hpp:347: warning: inline function
`gedis::gdm::CBitmapPoint::CBitmapPoint(unsigned char, unsigned char,
unsigned char, unsigned char)' used but never defined
Finished building: ../GDMFacade.cpp
Re: Warnings being interpreted as errors [message #199776 is a reply to message #199652] Mon, 20 August 2007 16:27 Go to previous message
Chris Recoskie is currently offline Chris RecoskieFriend
Messages: 163
Registered: July 2009
Senior Member
Phil Wingfield wrote:

> The lines beginning ../TerrainImportHandler.hpp:117: and
> ./TerrainImportHandler.hpp:1120:, with the message 'instantiated from'
> followed by a method signature, show up in the problems view as errors
> when actually they're just giving extra information about the following
> warning. Is there anywhere I can configure them to be warnings? I know I
> can filter them out in the problems view if I want but this is only a
> partial solution.
>

You would have to edit the source for the error parser. It's not a
configuration problem. The error parser is incorrectly parsing the
output and thinks your warnings are errors.. You should open a Bugzilla
for this problem.

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt
Previous Topic:change binary parser values programmatically
Next Topic:Cannot find bounds of current function
Goto Forum:
  


Current Time: Fri Aug 23 11:15:24 GMT 2024

Powered by FUDForum. Page generated in 0.03824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top