mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 02:30:11 +01:00
build: Use $GREP -e instead of plain grep -e
https://bugs.freedesktop.org/show_bug.cgi?id=37388
This commit is contained in:
parent
bdfd860ae7
commit
d11b39ea27
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue