martyn.shakespeare@bt.com
2003-May-14 13:28 UTC
[Samba] Compilation warnings for Samba 2.2.8a on Solaris 2.6
I received the following warnings building V2.2.8a on Sun Solaris 2.6, using gcc V2.7.2.2. Should I be worried? Thanks, M P Shakespeare BTexact UK Compiling libsmb/clireadwrite.c libsmb/clireadwrite.c: In function `cli_issue_read': libsmb/clireadwrite.c:60: warning: right shift count >= width of type libsmb/clireadwrite.c:60: warning: right shift count >= width of type libsmb/clireadwrite.c:60: warning: right shift count >= width of type libsmb/clireadwrite.c:60: warning: right shift count >= width of type libsmb/clireadwrite.c: In function `cli_issue_write': libsmb/clireadwrite.c:288: warning: right shift count >= width of type libsmb/clireadwrite.c:288: warning: right shift count >= width of type libsmb/clireadwrite.c:288: warning: right shift count >= width of type libsmb/clireadwrite.c:288: warning: right shift count >= width of type Compiling passdb/secrets.c passdb/secrets.c: In function `secrets_fetch': passdb/secrets.c:59: warning: assignment discards `const' from pointer target ty pe passdb/secrets.c: In function `secrets_store': passdb/secrets.c:74: warning: assignment discards `const' from pointer target ty pe passdb/secrets.c:76: warning: assignment discards `const' from pointer target ty pe passdb/secrets.c: In function `secrets_delete': passdb/secrets.c:89: warning: assignment discards `const' from pointer target ty pe Compiling lib/util_str.c lib/util_str.c: In function `toktocliplist': lib/util_str.c:104: warning: assignment discards `const' from pointer target typ e Compiling tdb/tdbutil.c tdb/tdbutil.c: In function `tdb_chainlock_with_timeout': tdb/tdbutil.c:46: warning: passing arg 1 of `tdb_set_lock_alarm' discards `volat ile' from pointer target type tdb/tdbutil.c: In function `tdb_lock_bystring': tdb/tdbutil.c:73: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_unlock_bystring': tdb/tdbutil.c:87: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_fetch_int32_byblob': tdb/tdbutil.c:103: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_store_int32_byblob': tdb/tdbutil.c:134: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_fetch_uint32_byblob': tdb/tdbutil.c:162: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_store_uint32_byblob': tdb/tdbutil.c:194: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_store_by_string': tdb/tdbutil.c:224: warning: assignment discards `const' from pointer target type tdb/tdbutil.c: In function `tdb_fetch_by_string': tdb/tdbutil.c:242: warning: assignment discards `const' from pointer target type British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or e-mail (to the number or address above) immediately. Activity and use of the British Telecommunications plc E-mail system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes.