10.7/clang gives errors in libcnary.dir/node.c and src/base64.c
Reported by mischi | September 26th, 2011 @ 04:34 PM
[ 16%] Building C object libcnary/CMakeFiles/libcnary.dir/node.c.o [ 20%] /sw/src/fink.build/libplist-1.7-1/libplist-1.7/libcnary/node.c:107:25: error:
non-void function 'node_insert' should return a value [-Wreturn-type]
if (!parent || !child) return;
^
1 error generated.
make[2]: [libcnary/CMakeFiles/libcnary.dir/node.c.o]
Error 1
make[1]: [libcnary/CMakeFiles/libcnary.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs....
Building C object src/CMakeFiles/plist.dir/hashtable.c.o
[ 24%] Building C object src/CMakeFiles/plist.dir/bytearray.c.o [
28%] Building C object src/CMakeFiles/plist.dir/ptrarray.c.o [ 32%]
Building C object src/CMakeFiles/plist.dir/bplist.c.o [ 36%]
Building C object src/CMakeFiles/plist.dir/base64.c.o
/sw/src/fink.build/libplist-1.7-1/libplist-1.7/src/base64.c:107:12:
error:
non-void function 'base64decode' should return a value [-Wreturn-type]
if (!buf) return;
^
/sw/src/fink.build/libplist-1.7-1/libplist-1.7/src/base64.c:109:16: error:
non-void function 'base64decode' should return a value [-Wreturn-type]
if (len <= 0) return;
^
/sw/src/fink.build/libplist-1.7-1/libplist-1.7/src/base64.c:117:35: warning:
passing 'unsigned char *' to parameter of type 'const char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
p+=base64decode_block(outbuf+p, line, strlen((char*)line));
^~~~
/sw/src/fink.build/libplist-1.7-1/libplist-1.7/src/base64.c:74:66: note:
passing argument to parameter 'data' here
static int base64decode_block(unsigned char target, const
char data, ...
^
1 warning and 2 errors generated.
make[2]: *** [src/CMakeFiles/plist.dir/base64.c.o] Error 1
Comments and changes to this ticket
-
Nikias Bassen January 11th, 2012 @ 11:31 PM
- State changed from new to resolved
- Tag set to libplist
Fixed. Too bad I forgot to check for these before releasing 1.8 so the fixes will be included in 1.9+
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A project around supporting the iPhone in Linux.
See http://libimobiledevice.org