Hello, Yannick and I removed most compilation warnings, there are some remaining. Most are "ignoring return value of...." warnings that should be handled or ignored by the corresponding code maintainers, I paste them below because they are produced using CFLAGS you may not be able to use. The others are "dereferencing type-punned pointer will break strict-aliasing rules" warnings that are generated with -Wall:
./src/libelektra/kdb.c kdb.c:321: warning: dereferencing type-punned pointer will break strict-aliasing rules I introduced that one while fixing more severe warnings. I used the code right from the example in the dlsym man page, and the issue is in that example too. If somebody as a solution, that'd be nice, but it seems to me that there is a defect in the dlsym man page anyway. berkeleydb.c:292: warning: dereferencing type-punned pointer will break strict-aliasing rules key->data is char* here, and void* at some other place. So it seems that using a union wold do the trick here. src/libelektratools/kdbtools.c kdbtools.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules similar here, with converter being void* and char* in the function call, so a union would do the trick. Here are the "ignoring return value of...." warnings: filesys.c:286: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result filesys.c:832: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result berkeleydb.c:470: warning: ignoring return value of 'chown', declared with attribute warn_unused_result berkeleydb.c:577: warning: ignoring return value of 'chown', declared with attribute warn_unused_result berkeleydb.c:578: warning: ignoring return value of 'chown', declared with attribute warn_unused_result in src/kdb/kdb.c kdb.c:534: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result kdb.c:1056: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result kdb.c:1150: warning: ignoring return value of 'system', declared with attribute warn_unused_result kdb.c:1165: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result -- Pat ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Registry-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/registry-list
