WEBP_TSAN_IGNORE_FUNCTION: fix gcc compat warning

move the attribute to the front of the function to quiet clang warning:
GCC does not allow no_sanitize_thread attribute in this position on a
function definition

Change-Id: Ie4cc6e35a07bd00eab67d9cd6801bd2be9cfe676
This commit is contained in:
James Zern
2014-10-16 18:06:43 +02:00
parent f358eeb891
commit a4c3a31b8f
25 changed files with 64 additions and 64 deletions

View File

@@ -171,9 +171,9 @@ YUV444_FUNC(Yuv444ToRgb565, VP8YuvToRgb565, 2)
WebPYUV444Converter WebPYUV444Converters[MODE_LAST];
extern void WebPInitYUV444ConvertersMIPSdspR2(void) WEBP_TSAN_IGNORE_FUNCTION;
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitYUV444ConvertersMIPSdspR2(void);
void WebPInitYUV444Converters(void) WEBP_TSAN_IGNORE_FUNCTION {
WEBP_TSAN_IGNORE_FUNCTION void WebPInitYUV444Converters(void) {
WebPYUV444Converters[MODE_RGB] = Yuv444ToRgb;
WebPYUV444Converters[MODE_RGBA] = Yuv444ToRgba;
WebPYUV444Converters[MODE_BGR] = Yuv444ToBgr;
@@ -198,11 +198,11 @@ void WebPInitYUV444Converters(void) WEBP_TSAN_IGNORE_FUNCTION {
//------------------------------------------------------------------------------
// Main calls
extern void WebPInitUpsamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION;
extern void WebPInitUpsamplersNEON(void) WEBP_TSAN_IGNORE_FUNCTION;
extern void WebPInitUpsamplersMIPSdspR2(void) WEBP_TSAN_IGNORE_FUNCTION;
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersSSE2(void);
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersNEON(void);
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersMIPSdspR2(void);
void WebPInitUpsamplers(void) WEBP_TSAN_IGNORE_FUNCTION {
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplers(void) {
#ifdef FANCY_UPSAMPLING
WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePair;
WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePair;