[Bug 211603] [NEW PORT] devel/kore: Web application framework for writing web APIs in C

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 27 18:41:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211603

Kurt Jaeger <pi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pi at FreeBSD.org

--- Comment #2 from Kurt Jaeger <pi at FreeBSD.org> ---
Fails to build on 10.3-i386 with 

cc -O2 -pipe  -fstack-protector -fno-strict-aliasing -Wall -Werror
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow
-Wpointer-arith -Wcast-qual -Wsign-compare -Iincludes -std=c99 -pedantic
-DPREFIX='"/usr/local"' -I/usr/local/include -DKORE_USE_PGSQL
-DPGSQL_INCLUDE_PATH="\"/usr/local/include\"" -DKORE_USE_TASKS
-DKORE_USE_JSONRPC -I/usr/local/include -c src/tasks.c -o obj/tasks.o
src/pgsql.c:222:6: error: variable 'args' is used uninitialized whenever 'if'
condition is false [-Werror,-Wsometimes-uninitialized]
        if (count > 0)
            ^~~~~~~~~
src/pgsql.c:225:63: note: uninitialized use occurs here
        ret = kore_pgsql_v_query_params(pgsql, query, result, count, args);
                                                                     ^~~~
src/pgsql.c:222:2: note: remove the 'if' if its condition is always true
        if (count > 0)
        ^~~~~~~~~~~~~~
src/pgsql.c:220:15: note: initialize the variable 'args' to silence this
warning
        va_list         args;
                            ^
                             = NULL
1 error generated.
gmake[1]: *** [Makefile:106: obj/pgsql.o] Error 1

for the full build see

http://people.freebsd.org/~pi/logs/devel__kore-10i-1472321629.txt

It's interesting this does not happen on amd64 ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list