Module Name: src Committed By: apb Date: Thu Nov 8 08:46:26 UTC 2012
Modified Files: src/external/mit/xorg/lib/xcb-util/atom: atoms.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/mit/xorg/lib/xcb-util/atom/atoms.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mit/xorg/lib/xcb-util/atom/atoms.c diff -u src/external/mit/xorg/lib/xcb-util/atom/atoms.c:1.1 src/external/mit/xorg/lib/xcb-util/atom/atoms.c:1.2 --- src/external/mit/xorg/lib/xcb-util/atom/atoms.c:1.1 Sun Jul 18 07:01:38 2010 +++ src/external/mit/xorg/lib/xcb-util/atom/atoms.c Thu Nov 8 08:46:26 2012 @@ -322,6 +322,7 @@ static const struct stringpool_t stringp "SECONDARY" }; #define stringpool ((const char *) &stringpool_contents) +static #ifdef __GNUC__ __inline #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__