On 1/13/2012 11:43 PM, David Lowe wrote:
>       I'd be grateful if anybody with a clang setup would test this and tell 
> me if we still have warnings under the new compiler.  It *should* compile w/o 
> problems when the debug ConfigureParam is turned off, but if we still have 
> issues when it is turned on i will take those upstream...

Unfortunately yes.  See below.  I have Xcode 4.1 on OS X 10.7.  With 
debugging off, it does finish building.  I can provide full build logs 
for both debug and normal builds.

Hanspeter

$ clang -v
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix

****
/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 rand.lo rand.c
warning: unknown warning option '-Wno-unused-but-set-variable' 
[-Wunknown-warning-option]
1 warning generated.
   CC     registry.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 registry.lo registry.c
warning: unknown warning option '-Wno-unused-but-set-variable' 
[-Wunknown-warning-option]
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)
                       ^~~~~~~~~~~
registry.c:2116: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:2116: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)
                       ^~~~~~~~~~~
registry.c:2117: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 != penumerator, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2117:66: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != penumerator, 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)
                       ^~~~~~~~~~~
registry.c:2118: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 != is_valid_fn, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2118:66: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != is_valid_fn, 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)
                       ^~~~~~~~~~~
registry.c:2119: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 != by_name_fn, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2119:65: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != by_name_fn, 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)
                       ^~~~~~~~~~~
registry.c:2258: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:2258: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)
                       ^~~~~~~~~~~
registry.c:2259: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 != penumerator, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2259:66: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != penumerator, 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)
                       ^~~~~~~~~~~
registry.c:2260: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 != is_valid_fn, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2260:66: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != is_valid_fn, 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)
                       ^~~~~~~~~~~
registry.c:2261: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 != by_name_fn, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2261:65: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != by_name_fn, 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)
                       ^~~~~~~~~~~
registry.c:2440: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:2440: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)
                       ^~~~~~~~~~~
registry.c:2441: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 != pvalue, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2441:61: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != pvalue, 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)
                       ^~~~~~~~~~~
registry.c:2442: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 != name_fn, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
registry.c:2442:62: note: instantiated from:
   SECFILE_RETURN_VAL_IF_FAIL(secfile, NULL, NULL != name_fn, 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)
                       ^~~~~~~~~~~
1 warning and 12 errors generated.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to