mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 22:39:52 +02:00
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:
@ -242,13 +242,13 @@ NEON_UPSAMPLE_FUNC(UpsampleBgraLinePair, Bgra, 4)
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
extern void WebPInitUpsamplersNEON(void) WEBP_TSAN_IGNORE_FUNCTION;
|
||||
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersNEON(void);
|
||||
|
||||
#ifdef FANCY_UPSAMPLING
|
||||
|
||||
extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
|
||||
|
||||
void WebPInitUpsamplersNEON(void) WEBP_TSAN_IGNORE_FUNCTION {
|
||||
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersNEON(void) {
|
||||
#if defined(WEBP_USE_NEON)
|
||||
WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePair;
|
||||
WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePair;
|
||||
@ -262,6 +262,6 @@ void WebPInitUpsamplersNEON(void) WEBP_TSAN_IGNORE_FUNCTION {
|
||||
#else
|
||||
|
||||
// this empty function is to avoid an empty .o
|
||||
void WebPInitUpsamplersNEON(void) WEBP_TSAN_IGNORE_FUNCTION {}
|
||||
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersNEON(void) {}
|
||||
|
||||
#endif // FANCY_UPSAMPLING
|
||||
|
Reference in New Issue
Block a user