Commit Graph

11 Commits

Author SHA1 Message Date
Roland C. Dowdeswell
cc47c8fa7b Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer.  Note that we get different
warnings on different machines and so this will be a work in
progress.  So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).

Notably, we fixed

	1.  a lot of missing structure initialisers,

	2.  unchecked return values for functions that glibc
	    marks as __attribute__((warn-unused-result)),

	3.  made minor modifications to slc and asn1_compile
	    which can generate code which generates warnings,
	    and

	4.  a few stragglers here and there.

We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g.  rsh, rcp,
popper, ftp and telnet.

Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.

We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Love Hörnquist Åstrand
942a821fab remove RCSID
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:17:40 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
8d40c2994b check return value of alloc functions, from Charles Longeau
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 16:11:25 +00:00
Love Hörnquist Åstrand
e02cf71271 main is not a KRB5_LIB_FUNCTION
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-01 12:45:13 +00:00
Love Hörnquist Åstrand
91351971f7 add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Assar Westerlund
7fa065136e more test vectors from same source
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:42:30 +00:00
Assar Westerlund
e68dfb6cc8 (main): print the correct data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6490 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-22 11:45:33 +00:00
Assar Westerlund
5af4587f1b (main): return a relevant return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-14 15:37:49 +00:00
Assar Westerlund
0117755210 test program
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6420 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-05 00:21:09 +00:00