mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 06:19:54 +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:
@ -28,14 +28,14 @@ typedef union { // handy struct for converting SSE2 registers
|
||||
|
||||
#include "./yuv_tables_sse2.h"
|
||||
|
||||
void VP8YUVInitSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {}
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8YUVInitSSE2(void) {}
|
||||
|
||||
#else
|
||||
|
||||
static int done_sse2 = 0;
|
||||
static VP8kCstSSE2 VP8kUtoRGBA[256], VP8kVtoRGBA[256], VP8kYtoRGBA[256];
|
||||
|
||||
void VP8YUVInitSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8YUVInitSSE2(void) {
|
||||
if (!done_sse2) {
|
||||
int i;
|
||||
for (i = 0; i < 256; ++i) {
|
||||
@ -309,9 +309,9 @@ static void YuvToBgrRowSSE2(const uint8_t* y,
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void WebPInitSamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION;
|
||||
extern WEBP_TSAN_IGNORE_FUNCTION void WebPInitSamplersSSE2(void);
|
||||
|
||||
void WebPInitSamplersSSE2(void) WEBP_TSAN_IGNORE_FUNCTION {
|
||||
WEBP_TSAN_IGNORE_FUNCTION void WebPInitSamplersSSE2(void) {
|
||||
#if defined(WEBP_USE_SSE2)
|
||||
WebPSamplers[MODE_RGB] = YuvToRgbRowSSE2;
|
||||
WebPSamplers[MODE_RGBA] = YuvToRgbaRowSSE2;
|
||||
|
Reference in New Issue
Block a user