From: David E. <tw...@us...> - 2005-08-16 17:40:15
|
Armin & others, I suggest that -Werror is removed from all Makefile.am files in OpenSync/libsyncml. This will prevent unneccessary support requests for compilation problems caused by stricted compilers (gcc4 :-) -- I have had a fair share of those in SynCE for this reason! For developers, the same effect as having -Werror in Makefile.am can be attained by setting the CFLAGS environment variable to -Werror before running ./configure. (In order for this to work, it must be made sure that AM_CFLAGS and not CFLAGS is used Makefile.am for this to work properly, but I don't think this is an issue with OpenSync! :-) -- Regards, -\- David Eriksson -/- SynCE - http://synce.sourceforge.net ScummVM - http://scummvm.sourceforge.net Desquirr - http://desquirr.sourceforge.net |
From: Eduardo P. H. <eha...@co...> - 2005-08-16 17:50:09
|
Hi, On Tue, Aug 16, 2005 at 07:40:08PM +0200, David Eriksson wrote: > Armin & others, >=20 > I suggest that -Werror is removed from all Makefile.am files in > OpenSync/libsyncml. >=20 > This will prevent unneccessary support requests for compilation problems > caused by stricted compilers (gcc4 :-) -- I have had a fair share of > those in SynCE for this reason! >=20 > For developers, the same effect as having -Werror in Makefile.am can be > attained by setting the CFLAGS environment variable to -Werror before > running ./configure.=20 I agree that users doesn't need -Werror. I use CFLAGS to set lots of debugigng flags, and I can set -Werror there, too. Unless we make sure that the code work with the most-pedantic-compiler out there, then maybe we can keep the flag. If we aren't able to make it compile without warnings on gcc4, I think we should remove -Werror it until we avoid these warnings. >=20 > (In order for this to work, it must be made sure that AM_CFLAGS and not > CFLAGS is used Makefile.am for this to work properly, but I don't think > this is an issue with OpenSync! :-) I guess that this is not a problem. :) --=20 Eduardo |
From: Armin B. <arm...@de...> - 2005-08-17 09:00:08
Attachments:
signature.asc
|
I dont think this is a good idea. After all the warnings are supposed to help us by warning us of a possible problem. So i think its better if we go the hard way and just fix these compilation problems. Ill just install gcc4 here so i get these warnings as well so i can fix them David Eriksson wrote: > Armin & others, > > I suggest that -Werror is removed from all Makefile.am files in > OpenSync/libsyncml. > > This will prevent unneccessary support requests for compilation problems > caused by stricted compilers (gcc4 :-) -- I have had a fair share of > those in SynCE for this reason! > > For developers, the same effect as having -Werror in Makefile.am can be > attained by setting the CFLAGS environment variable to -Werror before > running ./configure. > > (In order for this to work, it must be made sure that AM_CFLAGS and not > CFLAGS is used Makefile.am for this to work properly, but I don't think > this is an issue with OpenSync! :-) > I took a quickl look and im using AM_CFLAGS everywhere so this should already work. But like i said i think its better to use -Werror. |
From: Eduardo P. H. <eha...@co...> - 2005-08-17 12:05:56
|
On Wed, Aug 17, 2005 at 11:00:32AM +0200, Armin Bauer wrote: > I dont think this is a good idea. After all the warnings are supposed to > help us by warning us of a possible problem. So i think its better if we > go the hard way and just fix these compilation problems. Well, that's a good point. -Werror is a problem only if we take too much time to fix the compilation problems, and doesn't add any note or warning anywhere, saying that the code as-is (i.e. without changes on Makefile) won't build on gcc4 (that is the case until we fix the gcc4 warnings). >=20 > Ill just install gcc4 here so i get these warnings as well so i can fix t= hem If we fix the warning, I agree to keep the flag. What I think that we couldn't keep doing was: having code that we know that won't build, and no warning anywhere about it. BTW, I've just compiled opensyn cusing gcc 4.0.1, and I haven't seen any warning. Is any of you seeing warnings on building opensync (I haven't tested the plugins neither multisync) using gcc4? >=20 > David Eriksson wrote: > > Armin & others, > >=20 > > I suggest that -Werror is removed from all Makefile.am files in > > OpenSync/libsyncml. > >=20 > > This will prevent unneccessary support requests for compilation problems > > caused by stricted compilers (gcc4 :-) -- I have had a fair share of > > those in SynCE for this reason! > >=20 > > For developers, the same effect as having -Werror in Makefile.am can be > > attained by setting the CFLAGS environment variable to -Werror before > > running ./configure.=20 > >=20 > > (In order for this to work, it must be made sure that AM_CFLAGS and not > > CFLAGS is used Makefile.am for this to work properly, but I don't think > > this is an issue with OpenSync! :-) > >=20 >=20 > I took a quickl look and im using AM_CFLAGS everywhere so this should > already work. But like i said i think its better to use -Werror. --=20 Eduardo |