URL: <http://gna.org/bugs/?19307>
Summary: Some More Warnings from Clang Project: Freeciv Submitted by: doctorjlowe Submitted on: Thu 19 Jan 2012 08:00:47 AM PST Category: bootstrap Severity: 2 - Minor Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: 2.3.1 Discussion Lock: Any Operating System: Mac OS Planned Release: _______________________________________________________ Details: Herein are the results from building 2.3.1 with clang. Again, i don't yet have access to clang myself, so this is from one of the users of my package. This particular build was done with --enable-debug; the build completed successfully when debug was disabled. *** Making all in ftwl make[4]: Nothing to be done for `all'. CC astring.lo /bin/sh ../libtool --preserve-dup-deps --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/sw/include -DLOCALEDIR="\"/sw/share/locale\"" -DBINDIR="\"/sw/bin\"" -DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.3:/sw/share/freeciv\"" -DDEFAULT_SAVES_PATH="\"\"" -DDEFAULT_SCENARIO_PATH="\".:data/scenario:~/.freeciv/2.3/scenarios:~/.freeciv/scenarios:/sw/share/freeciv/scenario\"" -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wno-unused-but-set-variable -Werror -g -O2 -fsigned-char -c -o astring.lo astring.c warning: unknown warning option '-Wno-unused-but-set-variable' [-Wunknown-warning-option] 1 warning generated. *** This warning happens 18 times in total; for the rest i will only note the offending object files: bitvector.lo, capability.lo, distribute.lo, fc_utf8.lo, fciconv.lo, fcintl.lo, genhash.lo, genlist.lo, inputfile.lo, ioz.lo, iterator.lo, log.lo, netintf.lo, pqueue.lo, mem.lo, rand.lo, registry.lo. *** registry.c:1713:3: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'fc_bool' (aka 'unsigned int') [-Werror] SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != secfile, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ registry.c:1713:62: note: instantiated from: SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != secfile, NULL); ^~~~ In file included from registry.c:153: /usr/include/stdlib.h:115:14: note: instantiated from: #define NULL __DARWIN_NULL ^ In file included from registry.c:153: In file included from /usr/include/stdlib.h:63: In file included from /usr/include/_types.h:27: /usr/include/sys/_types.h:91:23: note: instantiated from: #define __DARWIN_NULL ((void *)0) ^~~~~~~~~~~ *** This error happens 12 times in total. Since the others are identical except for the source line, i will only note the offending lines: registry.c:2116, registry.c:2117, registry.c:2118, registry.c:2119, registry.c:2258, registry.c:2259, registry.c:2260, registry.c:2261, registry.c:2440, registry.c:2441, registry.c:2442. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 19 Jan 2012 08:00:47 AM PST Name: fink-build-log_freeciv_2.3.1-12_2012.01.14-07.27.42 Size: 222kB By: doctorjlowe warnings start at line 4796 <http://gna.org/bugs/download.php?file_id=14826> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?19307> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev