[pacman-dev] Pacman build is currently broken
Using the superior warnings of clang: dmcgee@galway ~/projects/pacman $ make make --no-print-directory all-recursive Making all in lib/libalpm Making all in po CC libalpm_la-signing.lo signing.c:195:5: error: variable 'ctx' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] if(init_gpgme(handle)) { ^~~~~~~~~~~~~~~~~~ signing.c:219:16: note: uninitialized use occurs here gpgme_release(ctx); ^~~ signing.c:195:2: note: remove the 'if' if its condition is always false if(init_gpgme(handle)) { ^~~~~~~~~~~~~~~~~~~~~~~~ signing.c:191:17: note: initialize the variable 'ctx' to silence this warning gpgme_ctx_t ctx; ^ = NULL 1 error generated. make[3]: *** [libalpm_la-signing.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 dmcgee@galway ~/projects/pacman $ git show-ref HEAD 390b08f18b4ef550230f9f4749fb52254ccba6e5 refs/remotes/origin/HEAD
On 10/02/13 08:09, Dan McGee wrote:
Using the superior warnings of clang:
Fixed on my working branch. --enable-warning-flags is also fixed. This results in the following errors I do not know how to fix: A bunch of these - in libalpm/pacman/util: util.c:471:24: error: format string is not a string literal [-Werror,-Wformat-nonliteral] vsyslog(LOG_WARNING, fmt, args_syslog); ^~~ util.c:486:37: error: format string is not a string literal [-Werror,-Wformat-nonliteral] ret = vfprintf(handle->logstream, fmt, args); ^~~ And some of these: make: *** [testdb.o] Error 1 clang: error: argument unused during compilation: '--param ssp-buffer-size=4' make: *** [vercmp] Error 1 clang: error: argument unused during compilation: '--param ssp-buffer-size=4' make: *** [pacsort] Error 1 Can someone who cares about clang fix these? Allan
participants (2)
-
Allan McRae
-
Dan McGee