Re: patch for 64bit compilation



On Fri, 2005-12-16 at 10:09 +0100, Alexander Larsson wrote:
> On Thu, 2005-12-15 at 12:29 +0100, Rodrigo Moya wrote:
> > On Thu, 2005-12-15 at 10:41 +0100, Alexander Larsson wrote:
> > > On Wed, 2005-12-14 at 15:54 +0100, Rodrigo Moya wrote:
> > > > Hi
> > > > 
> > > > I found a couple of compilation warnings (errors because of default VFS
> > > > warning flags from jhbuild) on a 64bit machine.
> > > > 
> > > > Attached patch fixes it. Not sure if it should be changed for all the
> > > > GNOME_VFS_FILE_INFO_SET_* macros.
> > > 
> > > What was the exact warning,
> > >
> > cc1: warnings being treated as errors
> > gnome-vfs-open-fd.c: In function 'get_stat_info_from_handle':
> > gnome-vfs-open-fd.c:282: warning: value computed is not used
> > make[1]: *** [gnome-vfs-open-fd.lo] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> 
> Bah, thats a stupid warning. Its not 64bit related either. Do you use a
> newer compiler or something?
> 
it happened on 64bit only. Compiler is gcc 4.1.0, on suse 10.0

> Your patch actually changes the API of the macro, making it not return a
> value. Maybe nobody uses that value, but I'm still hesitant to change it
> for this stupid warning. So we can:
> a) figure out what triggered this new stupid warning and see if we can
> disable it
> or
> b) use "(void)GNOME_VFS_FILE_INFO_SET_LOCAL (file_info, TRUE);"
> 
right, it changes the API, didn't really look at the uses outside of
vfs, that's why I thought everyone would be using it without caring
about the return value. If everyone uses it that way, wouldn't the API
change be ok? (sorry, can't check right now, will do ASAP).

> > >  and why didn't it appear for the other SET_*
> > > macros?
> > > 
> > hmm, not sure, I just saw the error for those two.
> 
> Maybe its the only such macro that is used inside vfs?
> 
seems so.
-- 
Rodrigo Moya <rodrigo gnome-db org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]