diff options
author | Greg Hudson <ghudson@mit.edu> | 2008-12-03 18:21:22 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2008-12-03 18:21:22 +0000 |
commit | 7a64640413a306635ad94403b72d798e4aa527ee (patch) | |
tree | d7de9ad9825efdde5efe329a774c4df65d75e4b3 /src/config | |
parent | 2a43fdbc47af63acccb80cbeab3bfb84394002b7 (diff) | |
download | krb5-7a64640413a306635ad94403b72d798e4aa527ee.zip krb5-7a64640413a306635ad94403b72d798e4aa527ee.tar.gz krb5-7a64640413a306635ad94403b72d798e4aa527ee.tar.bz2 |
Move warning flags to new variables WARN_CFLAGS and WARN_CXXFLAGS, so
that users can override the debugging and optimization flags
independently of the warning flags.
Remove -Wconversion from the standard set of warning flags since it
warns excessively on perfectly good code, and is designed to aid in
conversion of code from K&R to ANSI C rather than to maintain code
quality.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21273 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/pre.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/config/pre.in b/src/config/pre.in index c4a5722..eee0775 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -152,17 +152,20 @@ FAKELIBDIR=$(FAKEPREFIX)/lib # LOCALINCLUDES set by local Makefile.in # CPPFLAGS user override # CFLAGS user override but starts off set by configure +# WARN_CFLAGS user override but starts off set by configure # PTHREAD_CFLAGS set by configure, not included in CFLAGS so that we # don't pull the pthreads library into shared libraries ALL_CFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \ -DKRB5_DEPRECATED=1 \ - $(CPPFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) + $(CPPFLAGS) $(CFLAGS) $(WARN_CFLAGS) $(PTHREAD_CFLAGS) ALL_CXXFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \ -DKRB5_DEPRECATED=1 \ - $(CPPFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS) + $(CPPFLAGS) $(CXXFLAGS) $(WARN_CXXFLAGS) $(PTHREAD_CFLAGS) CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ +WARN_CFLAGS = @WARN_CFLAGS@ +WARN_CXXFLAGS = @WARN_CXXFLAGS@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ THREAD_LINKOPTS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) |