[pacman-dev] Pacman build is currently broken

Dan McGee dpmcgee at gmail.com
Sat Feb 9 17:09:52 EST 2013


Using the superior warnings of clang:

dmcgee at 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 at galway ~/projects/pacman
$ git show-ref HEAD
390b08f18b4ef550230f9f4749fb52254ccba6e5 refs/remotes/origin/HEAD


More information about the pacman-dev mailing list