From 4e1af424b1d6f4c88ee8472e82cca434488b6807 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 15 Mar 2024 22:37:00 +0300 Subject: [PATCH] Fixed error: empty expression statement has no effect remove unnecessary ';' to silence this warning [-Werror,-Wextra-semi-stmt] (#2063) Co-authored-by: Sam Lantinga --- src/codec_aom.c | 2 +- src/codec_avm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codec_aom.c b/src/codec_aom.c index 90b7d05523..ae91307696 100644 --- a/src/codec_aom.c +++ b/src/codec_aom.c @@ -829,7 +829,7 @@ static avifResult aomCodecEncodeImage(avifCodec * codec, int layerCount = encoder->extraLayerCount + 1; if (aom_codec_control(&codec->internal->encoder, AOME_SET_NUMBER_SPATIAL_LAYERS, layerCount) != AOM_CODEC_OK) { return AVIF_RESULT_UNKNOWN_ERROR; - }; + } } if (aomCpuUsed != -1) { if (aom_codec_control(&codec->internal->encoder, AOME_SET_CPUUSED, aomCpuUsed) != AOM_CODEC_OK) { diff --git a/src/codec_avm.c b/src/codec_avm.c index d9b2621236..0ac61b5ba2 100644 --- a/src/codec_avm.c +++ b/src/codec_avm.c @@ -710,7 +710,7 @@ static avifResult avmCodecEncodeImage(avifCodec * codec, int layerCount = encoder->extraLayerCount + 1; if (aom_codec_control(&codec->internal->encoder, AOME_SET_NUMBER_SPATIAL_LAYERS, layerCount) != AOM_CODEC_OK) { return AVIF_RESULT_UNKNOWN_ERROR; - }; + } } if (aomCpuUsed != -1) { if (aom_codec_control(&codec->internal->encoder, AOME_SET_CPUUSED, aomCpuUsed) != AOM_CODEC_OK) {