Re: svn commit: samba r6127 - in branches/SAMBA_3_0/source: include lib libads libsmb nsswitch rpc_server tdb utils

2005-03-30 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] wrote:
|
| The flag -Wall should be added permanently to CFLAGS, and all warnings
then
| generated should be eliminated.
Derrell,
It is defined when you set --enable-developer


cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCSr0gIR7qMdg1EfYRArEMAKCuMrg5d6HVLCQ1mXEMqs/Dm7tQ3QCg2Fqt
BtY5yUTwZdWN/rViLx+2Gt8=
=fKAw
-END PGP SIGNATURE-


Re: svn commit: samba r6127 - in branches/SAMBA_3_0/source: include lib libads libsmb nsswitch rpc_server tdb utils

2005-03-30 Thread derrell
Gerald (Jerry) Carter [EMAIL PROTECTED] writes:

 [EMAIL PROTECTED] wrote:

 | The flag -Wall should be added permanently to CFLAGS, and all warnings
 | then generated should be eliminated.

 Derrell,

 It is defined when you set --enable-developer

There's no reason that I can think of not to have -Wall in CFLAGS all the
time.  --enable-developer isn't obvious, and for those who don't know about
that (as I didn't and surely most of the non-team developers don't), errors
can be missed that the compiler could have caught.  I try to use -Wall in
everything I work on.  Compilers these days are just too good not to take
advantage of the bugs they can discover.

Derrell


svn commit: samba r6127 - in branches/SAMBA_3_0/source: include lib libads libsmb nsswitch rpc_server tdb utils

2005-03-29 Thread derrell
Author: derrell
Date: 2005-03-30 04:40:24 + (Wed, 30 Mar 2005)
New Revision: 6127

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6127

Log:
Eliminated all compiler warnings pertaining to mismatched qualifiers.  The
whole of samba comiles warning-free with the default compiler flags.

Temporarily defined -Wall to locate other potential problems.  Found an 
unused static function (#ifdefed out rather than deleted, in case it's 
needed for something in progress).  

There are also a number of uses of undeclared functions, mostly krb5_*.  
Files with these problems need to have appropriate header files included, 
but they are not fixed in this update.

oplock_linux.c.c has undefined functions capget() and capset(), which need 
to have #undef _POSIX_SOURCE specified before including sys/capability.h, 
but that could potentially have other side effects, so that remains uncorrected 
as well.
  
The flag -Wall should be added permanently to CFLAGS, and all warnings then 
generated should be eliminated.

Modified:
   branches/SAMBA_3_0/source/include/smb_macros.h
   branches/SAMBA_3_0/source/lib/smbldap.c
   branches/SAMBA_3_0/source/libads/kerberos.c
   branches/SAMBA_3_0/source/libsmb/spnego.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_acct.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_nss.h
   branches/SAMBA_3_0/source/nsswitch/winbindd_rpc.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_util.c
   branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c
   branches/SAMBA_3_0/source/tdb/tdb.c
   branches/SAMBA_3_0/source/tdb/tdbutil.c
   branches/SAMBA_3_0/source/utils/net_ads.c
   branches/SAMBA_3_0/source/utils/net_lookup.c
   branches/SAMBA_3_0/source/utils/smbcontrol.c


Changeset:
Sorry, the patch is too large (258 lines) to include; please use WebSVN to see 
it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6127