X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fregex.c;h=a8e2341ca84b9f6477f5ef85b4f8fc865bca7ff3;hb=7a719c1772d45a9990560820a78ae76534ae3497;hp=3b219555aa365042f7df17feddd1259615885590;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/lib/regex.c b/lib/regex.c index 3b219555a..a8e2341ca 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -14,12 +14,18 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ -#include +#ifndef _LIBC +# include -/* Make sure noone compiles this code with a C++ compiler. */ +# if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" +# pragma GCC diagnostic ignored "-Wtype-limits" +# endif +#endif + +/* Make sure no one compiles this code with a C++ compiler. */ #if defined __cplusplus && defined _LIBC # error "This is C code, use a C compiler" #endif @@ -53,7 +59,6 @@ GNU regex allows. Include it before , which correctly #undefs RE_DUP_MAX and sets it to the right value. */ #include -#include #include #include "regex_internal.h"