Skip to content

Commit

Permalink
Fixed error: empty expression statement has no effect; remove unneces…
Browse files Browse the repository at this point in the history
…sary ';' to silence this warning [-Werror,-Wextra-semi-stmt]
  • Loading branch information
slouken committed Jan 25, 2024
1 parent 2f8cd60 commit 83a08f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codec_aom.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,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

5 comments on commit 83a08f4

@sezero
Copy link

@sezero sezero commented on 83a08f4 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slouken: Do you want to submit this to mainstream? (codec_avm.c needs the exact same change, btw.)

@slouken
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, do you want to upstream it?

@sezero
Copy link

@sezero sezero commented on 83a08f4 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, can do. (Will keep your name as author, hope they will be OK with it.)

@slouken
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use your name, that's fine.

@sezero
Copy link

@sezero sezero commented on 83a08f4 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.