[cairo-commit] build/configure.ac.warnings
Benjamin Otte
company at kemper.freedesktop.org
Fri May 20 12:02:40 PDT 2011
build/configure.ac.warnings | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d11b39ea274edea1fe4aab87791101da0783be3c
Author: Benjamin Otte <otte at redhat.com>
Date: Fri May 20 20:57:33 2011 +0200
build: Use $GREP -e instead of plain grep -e
https://bugs.freedesktop.org/show_bug.cgi?id=37388
diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
index a43ae89..3eb0104 100644
--- a/build/configure.ac.warnings
+++ b/build/configure.ac.warnings
@@ -69,8 +69,9 @@ CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS"
# gcc from generating thousands of warnings about the misapplication of the
# attribute to void functions and variables.
AC_CACHE_CHECK([how to enable unused result warnings], cairo_cv_warn_unused_result, [
+ AC_REQUIRE([AC_PROG_GREP])
cairo_cv_warn_unused_result=""
- if echo $WARN_CFLAGS | grep -e '-Wno-attributes' >/dev/null; then
+ if echo $WARN_CFLAGS | $GREP -e '-Wno-attributes' >/dev/null; then
CAIRO_CC_TRY_FLAG_SILENT(
[-Wno-attributes],
[__attribute__((__warn_unused_result__)) void f (void) {}
More information about the cairo-commit
mailing list