This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: silence some libiberty warnings


This patch chips away at some of the remaining libiberty warnings.

Ben

2005-07-12  Ben Elliston  <bje@au.ibm.com>

        * xregex2.h (regexec): Qualify this prototype with __extension__
        when compiling with GNU C, as it uses __restrict.

Index: xregex2.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/include/xregex2.h,v
retrieving revision 1.5
diff -u -p -r1.5 xregex2.h
--- xregex2.h   10 May 2005 15:22:21 -0000      1.5
+++ xregex2.h   12 Jul 2005 03:25:28 -0000
@@ -1,6 +1,9 @@
 /* Definitions for data structures and routines for the regular
    expression library, version 0.12.
-   Copyright (C) 1985,1989-1993,1995-1998, 2000 Free Software Foundation, Inc.
+
+   Copyright (C) 1985, 1989, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
+   1998, 2000, 2005 Free Software Foundation, Inc.
+
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.

@@ -533,6 +536,9 @@ extern int regcomp (regex_t *__restrict
                     const char *__restrict __pattern,
                     int __cflags);

+#if (__GNUC__)
+__extension__
+#endif
 extern int regexec (const regex_t *__restrict __preg,
                     const char *__restrict __string, size_t __nmatch,
                     regmatch_t __pmatch[__restrict_arr],

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]