On Tue, 2003-03-11 at 20:01, Pierre Lebrun wrote:
> I get warning messages while compiling samba 2.2.7a on Solaris with
> Sun cc 4.2
> - assignment type mismatch
> - argument #1 is incompatible with prototype
> - initializer does not fit or is out of range: -1
> 
> Must I change variables type in source code to fit what is guessed by 
> the compiler ?
> Is source 2.2.7a not compatible with Solaris 2.5.1 ?

Any portable C program will cause warnings on some compilers.  We aim to
reduce the number of warnings, as they can indicate bugs, but just the
compiler's warning alone does not mean there must be a bug on that
line.  Some parts of the Samba code do not cast between signed and
unsigned characters - and for our purposes they are identical.  This
kind of thing will cause a warning.  Likewise our use of 'const' may
cause warnings when compiling against broken LDAP headers.

Because these warnings *can* indicate bugs, we compile samba after every
checkin on over 30 different compiler/arch combinations at
build.samba.org, and developers are encouraged to study the compiler
output presented there.

Andrew Bartlett

-- 
Andrew Bartlett                                 [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org     http://build.samba.org     http://hawkerc.net

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to