Skip to content

Commit

Permalink
Fixed error: empty expression statement has no effect
Browse files Browse the repository at this point in the history
remove unnecessary ';' to silence this warning [-Werror,-Wextra-semi-stmt] (AOMediaCodec#2063)

Co-authored-by: Sam Lantinga <[email protected]>
  • Loading branch information
sezero and slouken authored Mar 15, 2024
1 parent 1191d10 commit 4e1af42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codec_aom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/codec_avm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e1af42

Please sign in to comment.