Commit Graph

18 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
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
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +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
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Johan Danielsson
5f6d5c8c09 use getarg
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5817 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 14:53:10 +00:00
Assar Westerlund
f932e2c276 more braces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5222 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 09:33:08 +00:00
Assar Westerlund
dd02a92a8b replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-02 14:29:33 +00:00
Johan Danielsson
e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund
6a51a28699 removed prog. Use err & c:o
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1525 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 16:47:20 +00:00
Assar Westerlund
2da895c9ae *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1022 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 07:33:21 +00:00
Assar Westerlund
ba0f7a5872 Use new functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1021 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 07:30:26 +00:00
Assar Westerlund
dbca8c313e updated options and usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1004 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 04:14:12 +00:00
Assar Westerlund
ef51fd2aab Use OTP_ALG_DEFAULT.
Consistent language
Check return value from des_read_pw_string.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@999 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 02:22:06 +00:00
Assar Westerlund
f7ac30054b removed strlwr
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@971 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 19:04:16 +00:00
Björn Groenvall
0bcddc9caf Fix warnings, remove unused variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 18:39:27 +00:00
Assar Westerlund
e4d22704f0 new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@955 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-14 03:21:40 +00:00