Skip to content

Fix issue #325: compiler warnings#328

Merged
nephros merged 2 commits intosailfishos-patches:masterfrom
nephros:issue-325
Jan 5, 2023
Merged

Fix issue #325: compiler warnings#328
nephros merged 2 commits intosailfishos-patches:masterfrom
nephros:issue-325

Conversation

@nephros
Copy link
Contributor

@nephros nephros commented Jan 5, 2023

Avoid -Wunused-result, -Wunused-function, and -Wunused-parameter warnings.

@b100dian should be non-critical, but as as the preload library has the potential to really cause a bad day for users, please review carefully.

P.S.: Fixes issue #325

nephros added 2 commits January 5, 2023 16:48
avoid unused-result warning

Contributes-To: sailfishos-patches#325
move functions under #ifdef to avoid unused-parameter and unused-function warnings.

Contributes-To: sailfishos-patches#325
@nephros nephros requested a review from b100dian January 5, 2023 15:58
Copy link
Contributor

@b100dian b100dian left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for taking care of this!

@Olf0 Olf0 changed the title Fix Issue 325: compiler warnings Fix issue #325: compiler warnings Jan 5, 2023
Copy link
Contributor

@Olf0 Olf0 left a comment

Choose a reason for hiding this comment

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

LGTM (It is C, not C++, hence my opinion is more profound.)

@nephros nephros merged commit d4c0bcb into sailfishos-patches:master Jan 5, 2023
@nephros nephros deleted the issue-325 branch January 5, 2023 19:55
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