bug-grep
[Top][All Lists]
Advanced

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

Re: compilation warning


From: Jim Meyering
Subject: Re: compilation warning
Date: Sat, 06 Feb 2010 22:20:06 +0100

Eric Blake wrote:
> The build failed for me after ./configure --enable-gcc-warnings, when pcre
> development files are not available:
>
> search.c: In function 'Pexecute':
> search.c:729: error: function might be possible candidate for attribute
> 'noreturn' [-Wmissing-noreturn]
>
> Rather than declaring to always fail and Pexecute to just abort(), maybe
> it would make more sense to omit their declarations altogether in that
> instance, and not even expose the command line option?  Or is that too
> drastic, and we should come up with some other alternative?

Taking a non-invasive approach, so far I've always solved this
by installing the required package.  For Fedora, just do this:

    yum install pcre-devel

For an apt/deb-based distro, it's probably something like this:

    apt-get install libpcre3-dev




reply via email to

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