Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

10.7/clang gives errors in libcnary.dir/node.c and src/base64.c

#234

[ 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

Reported by mischi · September 26th, 2011 @ 04:34 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Sam Bingner
    Sam Bingner

    This patch should fix it...

    October 12th, 2011 @ 09:30 AM

  2. Nikias Bassen
    Nikias Bassen
    • 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+

    January 11th, 2012 @ 11:31 PM

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.