[patch] building recent git

Brad Hards bradh at frogmouth.net
Thu Nov 5 03:17:56 CET 2009


On Thursday 05 November 2009 12:32:26 Brad Hards wrote:
Next problem:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -
DLOCALEDIR=\"/usr/local/share/locale\" -I./gl -I./gl -I./includes -I./includes 
-I./x509 -I./opencdk -Werror -Wframe-larger-than=2100 -Wall -W -Wformat-
security -Winit-self -Wmissing-include-dirs -Wunused -Wunknown-pragmas -
Wstrict-aliasing -Wfloat-equal -Wdeclaration-after-statement -Wpointer-arith -
Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-
attribute -Wpacked -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -
Wlong-long -Wvla -Wvolatile-register-var -Wdisabled-optimization -Wstack-
protector -Woverlength-strings -Wbuiltin-macro-redefined -Wmudflap -Wpacked-
bitfield-compat -Wsync-nand -Wattributes -Wcoverage-mismatch -Wmultichar -
Wunused-macros -Wno-missing-field-initializers -Wno-sign-compare -Wno-pointer-
sign -Wno-unused-parameter -Wno-unused-parameter -Wno-stack-protector -
fdiagnostics-show-option -g -O2 -MT ext_signature.lo -MD -MP -MF 
.deps/ext_signature.Tpo -c ext_signature.c  -fPIC -DPIC -o 
.libs/ext_signature.o
cc1: warnings being treated as errors
ext_signature.c: In function '_gnutls_sign_algorithm_write_params':
ext_signature.c:44: error: unused variable 'ret' [-Wunused-variable]

Fix:
diff --git a/lib/ext_signature.c b/lib/ext_signature.c
index cd12fc7..93a0d08 100644
--- a/lib/ext_signature.c
+++ b/lib/ext_signature.c
@@ -41,7 +41,6 @@ int _gnutls_sign_algorithm_write_params(gnutls_session_t 
session, opaque *data,
 {
 opaque* p = data;
 int len, i ,j;
-int ret;
 sign_algorithm_st aid;

           len = session->internals.priorities.sign_algo.algorithms * 2;






More information about the Gnutls-devel mailing list