Re: patch for tvision

Max Okumoto <[email protected]> 10 Jan 2003 02:50:56 -0800
Newsgroups gmane.os.freebsd.devel.libh
Message-ID <[email protected]>
Here is an updated patch which should handle the new.cc errors.
I am looking into those warning in colorsel.cc.

Which version of gcc are you using?  And OS?

                        Max Okumoto


Tilman Linneweh <[email protected]> writes:

> Hello Max,
> 
> Thank you for posting this.
> 
> > Here is patch for tvision, it allow you to compile using gcc32.
> > Its not complete, and I have only done simple tests.
> 
> I tried, but it errored because of errors like this one:
> 
> new.cc: In function `void* operator new [](long unsigned int)':
> new.cc:165: declaration of `void* operator new [](long unsigned int)' throws
>    different exceptions
> /usr/include/g++/new:80: than previous declaration `void* operator new [](long
>    unsigned int) throw (std::bad_alloc)'
> 
> I'll investigate further this evening.
> 
> I have also seen some warnings, caused by running on an alpha. Perhaps someone wants
> to investigate these. 
> 
> colorsel.cc:215: warning: cast from pointer to integer of different size
> colorsel.cc: In member function `virtual void
>    TMonoSelector::handleEvent(TEvent&)':
> colorsel.cc:281: warning: cast from pointer to integer of different size
> colorsel.cc: In member function `virtual void
>    TColorDisplay::handleEvent(TEvent&)':
> colorsel.cc:360: warning: cast from pointer to integer of different size
> colorsel.cc:365: warning: cast from pointer to integer of different size
> colorsel.cc: In member function `virtual void TColorDisplay::setColor(uchar*)':
> colorsel.cc:373: warning: cast to pointer from integer of different size
> colorsel.cc: In member function `virtual void
>    TColorGroupList::handleEvent(TEvent&)':
> colorsel.cc:510: warning: cast from pointer to integer of different size
> colorsel.cc: In member function `virtual void TColorItemList::focusItem(short
>    int)':
> colorsel.cc:637: warning: cast to pointer from integer of different size
> colorsel.cc:642: warning: cast to pointer from integer of different size
> 
> regards 
> arved
patch-Max_0_5.gz (application/x-gunzip, 24.2 KB) - not displayed