Commit Graph

162 Commits

Author SHA1 Message Date
Roland C. Dowdeswell e8779d5d4a Add -Wshadow and deal with the warnings. 2012-02-21 11:17:55 +00:00
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
Nicolas Williams 3bebbe5323 Fixes to make Heimdal -Wall -Werror clean
These fixes make developer mode build, at least on Ubuntu.
2011-11-02 21:42:08 -05:00
Love Hörnquist Åstrand 7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hornquist Astrand 0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Thomas Klausner db8e287e41 Use "Fl Fl" for long options.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-05-21 11:54:14 -07:00
Anton Lundin 057f139f6a Fix to build on aix.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-17 12:21:58 -07:00
Love Hornquist Astrand c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Love Hörnquist Åstrand d3dcb320e6 no krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-28 00:43:26 +00:00
Love Hörnquist Åstrand f1691a4553 drop krbv4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24504 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:11:13 +00:00
Love Hörnquist Åstrand 9ac56d0e57 drop krbv4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24503 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:10:59 +00:00
Love Hörnquist Åstrand 7ad14d9ad4 drop krbv4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24502 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:10:46 +00:00
Love Hörnquist Åstrand 46d54811be init count before use, coverity #150
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:58 +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 c72b9bb2b9 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:51:49 +00:00
Love Hörnquist Åstrand cc4333b758 remove cvs ignore files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand 7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00
Love Hörnquist Åstrand e2ad54e734 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14851 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:01:15 +00:00
Love Hörnquist Åstrand e19f9f0e6c catch when snprint needs a larger buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14850 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:00:17 +00:00
Johan Danielsson 0624b4457e replace INCLUDES with AM_CPPFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 11:55:29 +00:00
Johan Danielsson c2d97cf300 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-17 14:03:42 +00:00
Johan Danielsson 586752552d alloc memory to handle very long lines
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-17 14:03:35 +00:00
Assar Westerlund f64b6ae0cc fixed one incorrect fprintf to stderr
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-04 02:10:17 +00:00
Love Hörnquist Åstrand 6b4e9dba04 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 18:22:10 +00:00
Love Hörnquist Åstrand db5235baa9 add names of pop states, add some more debugging and use
fprintf(stderr) for all dbg stmts.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 18:21:28 +00:00
Love Hörnquist Åstrand aa25cfcafa add copyright/license statment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-16 21:10:32 +00:00
Johan Danielsson 879fc6b8bc more, mostly whitespace, fixes from Thomas Klasusner
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson 747a00df69 remove Ns before comma (from Thomas Klausner)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 16:37:20 +00:00
Assar Westerlund 4ec35f6bb7 change Mars -> March, noted by Dima Dorfman <dima@trit.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-30 15:59:59 +00:00
Assar Westerlund c7f2ecdb80 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-04 09:52:41 +00:00
Assar Westerlund be5fe4842b (doit): check return values from snprintf being negative
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10652 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-04 09:45:52 +00:00
Assar Westerlund 19aff2e7fb references and see also fixups from Ruslan Ermilov <ru@FreeBSD.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-12 08:42:28 +00:00
Assar Westerlund a4b34f8e9e update location of gnus' crash box
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-15 12:14:24 +00:00
Assar Westerlund 25ad02d691 mdoc fixes from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-02 08:59:23 +00:00
Assar Westerlund 67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund 130cb6b3fc mdoc fixes from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-11 16:16:30 +00:00
Assar Westerlund 37888fcc61 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:12:15 +00:00
Assar Westerlund 633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund 76794120ed (doit): move some code to handle non-from case correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-26 00:24:42 +00:00
Assar Westerlund 5317a372d4 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-26 00:00:22 +00:00
Assar Westerlund 696099cfcd update to --headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9417 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-25 23:59:20 +00:00
Assar Westerlund 6c2a214b37 support several headers, from <mattiasa@e.kth.se>
use estrdup, emalloc, erealloc


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-25 23:56:16 +00:00
Johan Danielsson eb8fc80e65 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9230 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-29 18:26:32 +00:00
Johan Danielsson 5de9e95f7f work around bug in grog that makes it think it needs mdoc.old
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-29 18:26:27 +00:00
Johan Danielsson 14fbde39e0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-27 13:33:11 +00:00
Johan Danielsson 4852c15635 add space to usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-27 13:33:04 +00:00
Assar Westerlund baebf953a8 use LIB_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:51:14 +00:00
Johan Danielsson c787b9080d switch to automake
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-05 17:16:41 +00:00
Assar Westerlund 9b4ba3ef16 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 13:44:17 +00:00