They are not allowed outside of functions. Fixes the warning "ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]" when compiling with GCC and -pedantic.
Showing the changes to libavfilter (3 of 4 files). Show all
Unified · Split
| @@ -639,11 +639,11 @@ static av_cold void init_blend_func_##depth##_##nbits##bit(FilterParams *param) · 638 unmodified lines | ||
| 639 | 639 | case BLEND_XOR: param->blend = blend_xor_##depth##bit; break; \ |
| 640 | 640 | } \ |
| 641 | 641 | } |
| 642 | −DEFINE_INIT_BLEND_FUNC(8, 8); | |
| 643 | −DEFINE_INIT_BLEND_FUNC(9, 16); | |
| 644 | −DEFINE_INIT_BLEND_FUNC(10, 16); | |
| 645 | −DEFINE_INIT_BLEND_FUNC(12, 16); | |
| 646 | −DEFINE_INIT_BLEND_FUNC(16, 16); | |
| 642 | +DEFINE_INIT_BLEND_FUNC(8, 8) | |
| 643 | +DEFINE_INIT_BLEND_FUNC(9, 16) | |
| 644 | +DEFINE_INIT_BLEND_FUNC(10, 16) | |
| 645 | +DEFINE_INIT_BLEND_FUNC(12, 16) | |
| 646 | +DEFINE_INIT_BLEND_FUNC(16, 16) | |
| 647 | 647 | |
| 648 | 648 | void ff_blend_init(FilterParams *param, int depth) |
| 649 | 649 | { |
| @@ -176,8 +176,8 @@ static void convolution_y_##bits##bit(const uint16_t *filter, int filt_w, \ · 175 unmodified lines | ||
| 176 | 176 | } \ |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | −conv_y_fn(uint8_t, 8); | |
| 180 | −conv_y_fn(uint16_t, 10); | |
| 179 | +conv_y_fn(uint8_t, 8) | |
| 180 | +conv_y_fn(uint16_t, 10) | |
| 181 | 181 | |
| 182 | 182 | static void vmafmotiondsp_init(VMAFMotionDSPContext *dsp, int bpp) { |
| 183 | 183 | dsp->convolution_x = convolution_x; |
| @@ -37,9 +37,9 @@ static void FUNC_NAME(SCENE_SAD_PARAMS) { \ · 36 unmodified lines | ||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | #if HAVE_X86ASM |
| 40 | −SCENE_SAD_FUNC(scene_sad_sse2, ff_scene_sad_sse2, 16); | |
| 40 | +SCENE_SAD_FUNC(scene_sad_sse2, ff_scene_sad_sse2, 16) | |
| 41 | 41 | #if HAVE_AVX2_EXTERNAL |
| 42 | −SCENE_SAD_FUNC(scene_sad_avx2, ff_scene_sad_avx2, 32); | |
| 42 | +SCENE_SAD_FUNC(scene_sad_avx2, ff_scene_sad_avx2, 32) | |
| 43 | 43 | #endif |
| 44 | 44 | #endif |
| 45 | 45 | |