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

@ -188,13 +188,13 @@ SSE2_UPSAMPLE_FUNC(UpsampleBgraLinePair, VP8YuvToBgra, 4)
//------------------------------------------------------------------------------
extern void WebPInitUpsamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION;
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersSSE2(void);
#ifdef FANCY_UPSAMPLING
extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
void WebPInitUpsamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersSSE2(void) {
#if defined(WEBP_USE_SSE2)
VP8YUVInitSSE2();
WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePair;
@ -209,6 +209,6 @@ void WebPInitUpsamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {
#else
// this empty function is to avoid an empty .o
void WebPInitUpsamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {}
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersSSE2(void) {}
#endif // FANCY_UPSAMPLING