Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/linkm: Change non-returning internal function types to void #4318

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

ymdatta
Copy link
Contributor

@ymdatta ymdatta commented Sep 13, 2024

Some of the internal functions had int return type, but they were not returning anything and the places where these functions are called were also not expecting anything from the function.

To, simplify such cases, change the function return type to 'void'.

This issue was found using cppcheck tool. It's a low-priority one, since it's in the tests and the functions affected are internal test functions.

Additional information:

  1. Machine used: Virtual Machine running Ubuntu 22.04.4 LTS.
  2. Reproduction rate: 100%, reproducible every time.
  3. Output from cppcheck prior to fix
image

Output from cppcheck after the fix

image

Some of the internal functions had 'int' return type, but they
were not returning anything and the places where these functions
are called were also not expecting anything from the function.

To, simplify such cases, change the function return type to 'void'.

This was found using cppcheck tool.

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
@github-actions github-actions bot added C Related code is in C libraries labels Sep 14, 2024
@nilason nilason merged commit 63a80f5 into OSGeo:main Sep 16, 2024
26 checks passed
@neteler neteler added this to the 8.5.0 milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants