Pierre Lebrun
2003-Mar-11 09:01 UTC
[Samba] Threaten warnings while compiling Samba 2.2.7a on Solaris 2.5.1
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 ? Thank you for your help. Pierre
Andrew Bartlett
2003-Mar-12 22:01 UTC
[Samba] Threaten warnings while compiling Samba 2.2.7a on Solaris 2.5.1
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 abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20030313/0c2c594b/attachment.bin
Possibly Parallel Threads
- SAMBA 3.0.21 - Compile error on SOLARIS 7 & SOLARIS 2.5.1
- Samba 2.2.7a, Solaris 5.8 and GCC 2.95.3 compilation warnings
- Windows access problems
- Repost: Help - compilation of winbind_nss_solaris.c/3.0.21a/Solaris 7 and older fails
- Samba 2.2.7a 64bit executable on Solaris 8