#31 can not compile with opensuse 10.2

open
nobody
None
5
2007-05-23
2007-05-23
erno
No

The project can not be compiled because of errors in

rhgdb/main.cc file

cc1plus: warnings being treated as errors
main.cc: In function ‘void OpenDisWin()’:
main.cc:429: warning: dereferencing type-punned pointer will break strict-aliasing rules
main.cc: In function ‘void AddInspect(const char*)’:
main.cc:451: warning: dereferencing type-punned pointer will break strict-aliasing rules
main.cc: In member function ‘virtual void RHGDBApp::handleEvent(TEvent&)’:
main.cc:514: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [main.o] Error 1
make: *** [rhgdb/rhgdb.exe] Error 2

The error could be removed by replacing

AddWindow(dis_win, (TWindow **) & dis_win);

with

AddWindow(dis_win, (TWindow **) (void *) & dis_win);

for all of the three lines like above.

Could you make rhide working with newer versions of gdb?
I tried this, but can not compile because of incompatibilities between gdb versions

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks