diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-10-08 14:35:55 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-10-08 14:35:55 +0200 |
commit | a9045a7597488129e0cb795c192d1f7aee979c86 (patch) | |
tree | f040e63af35f5b6dd728b8b1a81c827b38d6b53f /src | |
parent | 1e895f910e409cc7279cd483b21191eed4a7dd34 (diff) | |
download | libtasn1-a9045a7597488129e0cb795c192d1f7aee979c86.tar.gz libtasn1-a9045a7597488129e0cb795c192d1f7aee979c86.tar.bz2 libtasn1-a9045a7597488129e0cb795c192d1f7aee979c86.zip |
Add warning flags mechanism. Fix warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 3 | ||||
-rw-r--r-- | src/asn1Decoding.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0c849f3..71ffb29 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,7 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl +AM_CFLAGS = $(WARN_CFLAGS) +AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl LDADD = ../lib/libtasn1.la ../gl/libgnu.la diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c index e4879e2..87ce973 100644 --- a/src/asn1Decoding.c +++ b/src/asn1Decoding.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007 Free Software Foundation + * Copyright (C) 2006, 2007, 2008 Free Software Foundation * Copyright (C) 2002 Fabio Fiorina * * This file is part of LIBTASN1. @@ -174,7 +174,7 @@ main(int argc,char *argv[]) { size_t tmplen; - der = read_binary_file (inputFileDerName, &tmplen); + der = (unsigned char*) read_binary_file (inputFileDerName, &tmplen); der_len = tmplen; } |