diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2017-07-21 13:34:45 -0700 |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-07-22 09:38:19 -0700 |
commit | a9f7732d45c22ca7d22bed6ff2eaeb702356884e (patch) | |
tree | 0472fe6cc282a7fd82b0debe36a1ced5fb2d2e89 /configure.ac | |
parent | aa6c2821374f6dd6ed2e628c06bc08b0c4bc485c (diff) |
Logging: allow logging with empty varargs.
Currently, the log macro requires at least one argument after the format string,
because of the way the preprocessor handles varargs macros. We can hide some of
that irritation by pushing the extra arguments into a varargs function.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 02151543..ba0409a5 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,7 @@ if test "x$GCC" = "xyes" ; then JE_CFLAGS_ADD([-Wshorten-64-to-32]) JE_CFLAGS_ADD([-Wsign-compare]) JE_CFLAGS_ADD([-Wundef]) + JE_CFLAGS_ADD([-Wno-format-zero-length]) JE_CFLAGS_ADD([-pipe]) JE_CFLAGS_ADD([-g3]) elif test "x$je_cv_msvc" = "xyes" ; then |