Skip to content

Fix a compiler warning in libymsg#61

Merged
QuLogic merged 1 commit into
pidgin:mainfrom
grimmy:ymsg-warning
Aug 5, 2025
Merged

Fix a compiler warning in libymsg#61
QuLogic merged 1 commit into
pidgin:mainfrom
grimmy:ymsg-warning

Conversation

@grimmy

@grimmy grimmy commented Aug 4, 2025

Copy link
Copy Markdown
Member

The warning was that the mixed indentation could make it look like the line two below the if might be covered by the if. So just putting braces on the body of the if was enough to make it happy without a ton of modification.

@grimmy grimmy assigned ghost and QuLogic Aug 4, 2025
@EionRobb

EionRobb commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

Would having an .editorconfig and rewhitespacing (totally not just a made up word) the repo help?

@grimmy

grimmy commented Aug 4, 2025

Copy link
Copy Markdown
Member Author

That might be an idea but we've been trying to not just completely rewrite history. But the compiler did catch this one so I dunno.

Comment thread yahoo/libymsg.c Outdated
Comment on lines +4926 to +4928
if (fed) {
yahoo_packet_hash_int(pkt, 241, fed);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AFAICT, the whole file uses tabs, so might as well fix that while here.

Suggested change
if (fed) {
yahoo_packet_hash_int(pkt, 241, fed);
}
if (fed) {
yahoo_packet_hash_int(pkt, 241, fed);
}

The warning was that the mixed indentation could make it look like the line
two below the if might be covered by the if. So just putting braces on the
body of the if was enough to make it happy without a ton of modification.
@QuLogic QuLogic merged commit 5eefbbf into pidgin:main Aug 5, 2025
8 checks passed
@grimmy grimmy deleted the ymsg-warning branch August 5, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants