bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: avoid compilation failure when building without PCRE supp


From: Jim Meyering
Subject: [PATCH] build: avoid compilation failure when building without PCRE support
Date: Thu, 15 Sep 2011 16:49:44 +0200

Independent of today's patch series, here's a fix for a build
failure reported by Eric Blake:

      CC       pcresearch.o
    pcresearch.c:112:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'Pexecute'
    make[2]: *** [pcresearch.o] Error 1

That happens only when configure-time tests fail to find PCRE support.

Here's the fix:

>From e41f61a2fa00469f8462a9216a9aae5838f26629 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 15 Sep 2011 16:47:48 +0200
Subject: [PATCH] build: avoid compilation failure when building without PCRE
 support

* src/pcresearch.c [!HAVE_LIBPCRE] (WITHOUT_PCRE_NORETURN): Define
to _Noreturn, not obsoleted-by-gnulib _GL_ATTRIBUTE_NORETURN.
Reported by Eric Blake.
---
 src/pcresearch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pcresearch.c b/src/pcresearch.c
index f8581e0..5ccc626 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -103,7 +103,7 @@ Pcompile (char const *pattern, size_t size)

 /* Pexecute is a no-return function when building --without-pcre.  */
 #if !HAVE_LIBPCRE
-# define WITHOUT_PCRE_NORETURN _GL_ATTRIBUTE_NORETURN
+# define WITHOUT_PCRE_NORETURN _Noreturn
 #else
 # define WITHOUT_PCRE_NORETURN /* empty */
 #endif
--
1.7.7.rc0.362.g5a14



reply via email to

[Prev in Thread] Current Thread [Next in Thread]