diff options
author | Simon Josefsson <simon@josefsson.org> | 2013-03-24 10:27:46 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2013-03-24 10:27:46 +0100 |
commit | f36dd027a9002fcd2eec72aa3f445e03b8c7984d (patch) | |
tree | f0768062d05657c52d0af05fbd026bbaf6b68814 | |
parent | 50e02f7e015ccd603d89039f1ad82a5b2eb9a25a (diff) | |
download | libtasn1-f36dd027a9002fcd2eec72aa3f445e03b8c7984d.tar.gz libtasn1-f36dd027a9002fcd2eec72aa3f445e03b8c7984d.tar.bz2 libtasn1-f36dd027a9002fcd2eec72aa3f445e03b8c7984d.zip |
Silence warnings.
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | lib/decoding.c | 8 |
3 files changed, 11 insertions, 10 deletions
@@ -1,8 +1,7 @@ -tags -*~ *.gcda *.gcno *.gcov +*~ ChangeLog INSTALL Makefile @@ -119,6 +118,8 @@ gl/time.h gl/timespec.lo gl/timespec.o gl/unistd.h +gl/unistd.lo +gl/unistd.o gl/version-etc-fsf.lo gl/version-etc-fsf.o gl/version-etc.lo @@ -185,13 +186,12 @@ src/asn1Parser src/asn1Parser.o src/benchmark.o stamp-h1 +tags tests/.deps/ tests/Makefile tests/Makefile.in tests/Test_encoding tests/Test_encoding.o -tests/Test_strings.o -tests/Test_strings tests/Test_errors tests/Test_errors.o tests/Test_indefinite @@ -203,6 +203,8 @@ tests/Test_parser.o tests/Test_parser_ERROR.asn tests/Test_simple tests/Test_simple.o +tests/Test_strings +tests/Test_strings.o tests/Test_tree tests/Test_tree.o windows/libtasn1-*-win??.zip diff --git a/configure.ac b/configure.ac index a49dccd..561aa07 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -# Copyright (C) 2002-2012 Free Software Foundation, Inc. +# Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is part of LIBTASN1. # @@ -89,6 +89,7 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([$w]) done + gl_WARN_ADD([-Wno-type-limits]) gl_WARN_ADD([-Wno-missing-field-initializers]) gl_WARN_ADD([-Wno-unused-parameter]) gl_WARN_ADD([-Wno-stack-protector]) # Some functions cannot be protected diff --git a/lib/decoding.c b/lib/decoding.c index c522c5d..efda4dc 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2012 Free Software Foundation, Inc. + * Copyright (C) 2002-2013 Free Software Foundation, Inc. * * This file is part of LIBTASN1. * @@ -109,7 +109,7 @@ asn1_get_length_der (const unsigned char *der, int der_len, int *len) return -2; sum += *len; - if (sum > (unsigned)der_len) + if (sum > der_len) return -4; return ans; @@ -282,7 +282,7 @@ _asn1_get_objectid_der (const unsigned char *der, int der_len, int *ret_len, int len_len, len, k; int leading; char temp[20]; - unsigned long val, val1, prev_val; + unsigned long val, val1; *ret_len = 0; if (str && str_size > 0) @@ -303,7 +303,6 @@ _asn1_get_objectid_der (const unsigned char *der, int der_len, int *ret_len, _asn1_str_cat (str, str_size, "."); _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp)); - prev_val = 0; val = 0; leading = 1; for (k = 1; k < len; k++) @@ -326,7 +325,6 @@ _asn1_get_objectid_der (const unsigned char *der, int der_len, int *ret_len, _asn1_str_cat (str, str_size, "."); _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp)); val = 0; - prev_val = 0; leading = 1; } } |