Warnings during Cyrus SASL 2.1.26 build

Julien ÉLIE <[email protected]>
Newsgroups gmane.comp.security.cyrus.sasl
Organization TrigoFACILE -- http://www.trigofacile.com/
Message-ID <[email protected]>
Hi,

On NetBSD 5.1, I get the following (non-blocking) errors when building Cyrus SASL 2.1.26.
I report them in case you wish to fix them:

db_ndbm.c:95:25: warning: passing argument 3 of 'utils->getcallback' from incompatible pointer type [enabled by default]
db_ndbm.c:173:5: warning: passing argument 3 of 'utils->getcallback' from incompatible pointer type [enabled by default]
db_ndbm.c:237:7: warning: passing argument 3 of 'utils->getcallback' from incompatible pointer type [enabled by default]
db_ndbm.c:252:9: warning: passing argument 3 of 'utils->getcallback' from incompatible pointer type [enabled by default]
db_ndbm.c:314:7: warning: passing argument 3 of 'utils->getcallback' from incompatible pointer type [enabled by default]
checkpw.c:119:5: warning: pointer targets in passing argument 2 of '_sasl_MD5Update' differ in signedness [-Wpointer-sign]
checkpw.c:120:5: warning: pointer targets in passing argument 2 of '_sasl_MD5Update' differ in signedness [-Wpointer-sign]
checkpw.c:121:5: warning: pointer targets in passing argument 2 of '_sasl_MD5Update' differ in signedness [-Wpointer-sign]
checkpw.c:371:5: warning: pointer targets in passing argument 2 of '_sasl_MD5Update' differ in signedness [-Wpointer-sign]
checkpw.c:373:7: warning: pointer targets in passing argument 2 of '_sasl_MD5Update' differ in signedness [-Wpointer-sign]
checkpw.c:662:5: warning: passing argument 3 of '_sasl_getcallback' from incompatible pointer type [enabled by default]
checkpw.c:1044:5: warning: passing argument 3 of '_sasl_getcallback' from incompatible pointer type [enabled by default]
client.c:596:6: warning: array subscript has type 'char' [-Wchar-subscripts]
common.c:1048:21: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
common.c:1051:21: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
common.c:1528:16: warning: variable 'conn' set but not used [-Wunused-but-set-variable]
config.c:89:6: warning: array subscript has type 'char' [-Wchar-subscripts]
saslutil.c:134:11: warning: variable 'blah' set but not used [-Wunused-but-set-variable]
saslutil.c:291:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'time_t' [-Wformat=]
saslutil.c:293:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'time_t' [-Wformat=]
server.c:654:10: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
../plugins/plugin_common.c:94:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../plugins/plugin_common.c:97:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
sasldb.c:251:17: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
plugin_common.c:94:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
plugin_common.c:97:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cram.c:140:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=]
digestmd5.c:3051:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
digestmd5.c:3653:10: warning: variable 'IsUTF8' set but not used [-Wunused-but-set-variable]
gssapi.c:211:5: warning: passing argument 3 of '_plug_buf_alloc' from incompatible pointer type [enabled by default]
gssapi.c:238:2: warning: passing argument 3 of '_plug_buf_alloc' from incompatible pointer type [enabled by default]
gssapi.c:258:5: warning: passing argument 3 of '_plug_buf_alloc' from incompatible pointer type [enabled by default]
gssapi.c:289:2: warning: passing argument 3 of '_plug_buf_alloc' from incompatible pointer type [enabled by default]
gssapi.c:306:5: warning: passing argument 3 of '_plug_buf_alloc' from incompatible pointer type [enabled by default]
gssapi.c:534:15: warning: variable 'maj_stat' set but not used [-Wunused-but-set-variable]
gssapi.c:613:29: warning: unused parameter 'utils' [-Wunused-parameter]
dbconverter-2.c:379:5: warning: initialization from incompatible pointer type [enabled by default]
pluginviewer.c:212:11: warning: unused parameter 'context' [-Wunused-parameter]
pluginviewer.c:213:17: warning: unused parameter 'plugin_name' [-Wunused-parameter]
pluginviewer.c:425:10: warning: passing argument 2 of 'getsubopt' from incompatible pointer type [enabled by default]
pluginviewer.c:450:10: warning: passing argument 2 of 'getsubopt' from incompatible pointer type [enabled by default]
pluginviewer.c:479:10: warning: passing argument 2 of 'getsubopt' from incompatible pointer type [enabled by default]
saslauthd.h:190:0: warning: "KRB5_HEIMDAL" redefined [enabled by default]
../config.h:337:0: warning: "PACKAGE" redefined [enabled by default]
auth_httpform.c:253:9: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:254:9: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:261:9: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:262:9: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:263:9: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:264:9: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:335:5: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:336:5: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:337:5: warning: passing argument 1 of 'memset' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:338:5: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:339:5: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]
auth_httpform.c:340:5: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default]

-- 
Julien ÉLIE

« Et puis, toi tu penses, moi je suis. » (Mot de passe)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.