Source-Changes-HG archive

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

[src/trunk]: src/external/mit/xorg/lib/xcb-util/atom Mark inline function in_...



details:   https://anonhg.NetBSD.org/src/rev/57fae7cd6ac2
branches:  trunk
changeset: 782594:57fae7cd6ac2
user:      apb <apb%NetBSD.org@localhost>
date:      Thu Nov 08 08:46:26 2012 +0000

description:
Mark inline function in_word_set(str, len) as static.
The function uses a static variable (stringpool_contents)
and this is not allowed in an inline function with external linkage.
Found by clang -Wstatic-in-inline.

diffstat:

 external/mit/xorg/lib/xcb-util/atom/atoms.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 57fc4c14ce91 -r 57fae7cd6ac2 external/mit/xorg/lib/xcb-util/atom/atoms.c
--- a/external/mit/xorg/lib/xcb-util/atom/atoms.c       Thu Nov 08 08:22:56 2012 +0000
+++ b/external/mit/xorg/lib/xcb-util/atom/atoms.c       Thu Nov 08 08:46:26 2012 +0000
@@ -322,6 +322,7 @@
     "SECONDARY"
   };
 #define stringpool ((const char *) &stringpool_contents)
+static
 #ifdef __GNUC__
 __inline
 #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__



Home | Main Index | Thread Index | Old Index