Topic: Problem building latest from git
Hi,
I got this error (or warning) by compiling latest sources from git:
Configuration summary for cyassl version 2.3.1
* Installation prefix: /usr/local
* System type: unknown-linux-gnu
* Host CPU: x86_64
* C Compiler: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
* C Flags: -O2 -Werror -Wall -Wextra -std=c99 -Wbad-function-cast -Wmissing-prototypes -Wnested-externs -Woverride-init -Wlogical-op -Wno-strict-aliasing -Wfloat-equal -Wundef -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wmissing-declarations -Wswitch-enum -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wmissing-noreturn -Wnormalized=id -Wstrict-overflow=1 -Wformat -Wformat-security -Wpointer-sign -Wshadow -Wswitch-default -Warray-bounds
* C++ Compiler: g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
* C++ Flags: -g -O2 -D_FORTIFY_SOURCE=2 -Werror -Wall -Wextra -Wpragmas -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wmissing-field-initializers -Wmissing-noreturn -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused-result -Wunused-variable -Wwrite-strings -floop-parallelize-all -fwrapv -ggdb
* CPP Flags:
* Assertions enabled:
* Debug enabled:
* Warnings as failure: yes
---
make all-am
make[1]: Entering directory `/home/luca/Work/phoenix/neteye/workspace/cyassl-git'
CC src/src_libcyassl_la-internal.lo
src/internal.c: In function 'Encrypt':
src/internal.c:2674:26: error: declaration of 'buffer' shadows a global declaration [-Werror=shadow]
./cyassl/internal.h:573:3: error: shadowed declaration is here [-Werror=shadow]
cc1: all warnings being treated as errors
make[1]: *** [src/src_libcyassl_la-internal.lo] Error 1
make[1]: Leaving directory `/home/luca/Work/phoenix/neteye/workspace/cyassl-git'
make: *** [all] Error 2
without flags:
make all-am
make[1]: Entering directory `/home/luca/Work/phoenix/neteye/workspace/cyassl-git'
CC src/src_libcyassl_la-internal.lo
src/internal.c: In function 'ProcessReply':
src/internal.c:3182:24: error: 'ret' may be used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
make[1]: *** [src/src_libcyassl_la-internal.lo] Error 1
make[1]: Leaving directory `/home/luca/Work/phoenix/neteye/workspace/cyassl-git'
make: *** [all] Error 2