Skip to content

Commit

Permalink
Merge pull request #185 from jnpkrn/followup-fixes
Browse files Browse the repository at this point in the history
Follow-up fixes
  • Loading branch information
chrissie-c committed Feb 22, 2016
2 parents 91fd29f + e490932 commit 0aa6706
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,17 @@ if test x"$GCC" = xyes && cc_supports_flag -Wsuggest-attribute=format; then
AC_DEFINE([HAVE_GCC_SUGGEST_ATTRIBUTE_FORMAT], [],
[gcc supports -Wsuggest-attribute=format])
fi
dnl pretend GCC (<4.6) is not capable of format complaints when it does not
dnl support diagnostic push/pop pragmas (cannot track state reliably, then)
if test x"$gcc_format_complaints" = xyes; then
AC_DEFINE([HAVE_GCC_FORMAT_COMPLAINTS], [],
[gcc can complain about missing format attribute])
backup_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#pragma GCC diagnostic push
#pragma GCC diagnostic pop
]])], AC_DEFINE([HAVE_GCC_FORMAT_COMPLAINTS], [],
[gcc can complain about missing format attribute]))
CFLAGS="$backup_CFLAGS"
fi

# --- coverage ---
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ dependent_headers = $(subst $(inc_dir),,$(shell \
|| echo $(inc_dir)/qb*.h))
dependent_headers_omit = qbconfig.h

dist_man_MANS += $(patsubst %,man3/%.3,$(filter-out \
dist_man3_MANS = $(patsubst %,man3/%.3,$(filter-out \
$(dependent_headers_omit),$(dependent_headers) \
))

$(dist_man_MANS): man.dox $(dependent_headers:%=$(inc_dir)/%)
$(dist_man3_MANS): man.dox $(dependent_headers:%=$(inc_dir)/%)
mkdir -p man3
doxygen man.dox

Expand Down

0 comments on commit 0aa6706

Please sign in to comment.