mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05:00
Add '-Wall -Werror' to the compile options in the autotools makefile,
having just noticed that Makefile.gtk had it and this one doesn't. (Of course, this being autoconf, we can easily enough make it conditional on the compiler actually being gcc.) [originally from svn r9583]
This commit is contained in:
@ -122,6 +122,14 @@ AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])
|
||||
AC_CHECK_DECLS([CLOCK_MONOTONIC], [], [], [[#include <time.h>]])
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME],[],[Define if clock_gettime() is available])])
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
:
|
||||
AC_SUBST(WARNINGOPTS, ['-Wall -Werror'])
|
||||
else
|
||||
:
|
||||
AC_SUBST(WARNINGOPTS, [])
|
||||
fi
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
if test "$gtk_version_desired" = "no"; then cat <<EOF
|
||||
|
Reference in New Issue
Block a user