Commit Graph

12 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 Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Love Hornquist Astrand
599fefcb8d make async glue for non async case work 2009-11-23 17:56:06 -08:00
Love Hornquist Astrand
46f49ed531 implement more of the new syntax 2009-11-23 07:27:49 -08:00
Love Hornquist Astrand
d183fc0952 handle sync unix socket message, turn async message into sync if the backend doesn't support them 2009-11-22 13:14:34 -08:00
Love Hornquist Astrand
c228d7487b service is non optional 2009-11-22 12:57:35 -08:00
Love Hornquist Astrand
f56b3e7f09 unused variable 2009-11-22 07:12:33 -08:00
Love Hornquist Astrand
607bae3c9e glue in working autoconf logic 2009-11-21 22:58:59 -08:00
Love Hornquist Astrand
7bb7bd72ab make compile and remove warnings 2009-11-21 17:12:38 -08:00
Love Hornquist Astrand
31405c40f3 add dependency on HAVE_LIBDISPATCH 2009-11-21 16:04:49 -08:00
Love Hornquist Astrand
d0178934a1 basic ipc framework 2009-11-21 10:25:30 -08:00