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

checks: Fix -Wsometimes-uninitialized compiler warnings #2165

Merged
merged 3 commits into from
Nov 8, 2022

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Feb 4, 2022

As reported in #2156.

Initially this is a draft, I commented in code to highlight the sometimes uninitialised variables.
We need to decide how to address them.

Affects:

Modules

  • db/drivers/ogr
  • d.vect
  • d.vect.thematic
  • i.eb.soilheatflux
  • r.buffer
  • r.fill.stats
  • r.resamp.rst
  • r3.in.bin
  • r3.in.v5d
  • r3.out.bin
  • r3.out.v5d
  • v.normal
  • v.proj
  • v.sample
  • v.to.rast3

GRASS Library parts

  • lib/imagery
  • lib/ogsf
  • lib/raster3d
  • lib/vector/Vlib

@nilason nilason mentioned this pull request Feb 4, 2022
21 tasks
@nilason nilason added this to the 8.2.0 milestone Feb 4, 2022
@nilason nilason added C Related code is in C enhancement New feature or request labels Feb 4, 2022
@wenzeslaus
Copy link
Member

Can you please move the CodeQL errors to a separate PR? They are unrelated and likely we can merge them much sooner.

@wenzeslaus
Copy link
Member

I merged this with main which resolved conflicts, but it needs some additional clean up because now it would revert some changes which happened on main in the same files. Given that this is a draft without any actual code changes, I'm leaving it as is for now.

@nilason
Copy link
Contributor Author

nilason commented Oct 28, 2022

Finalised the rebase, to be able to continue with clean sheets.

@nilason nilason marked this pull request as ready for review October 31, 2022 20:45
@nilason
Copy link
Contributor Author

nilason commented Oct 31, 2022

Opening this for review. I left the comments temporarily for context, I will remove them before merge.

vector/v.sample/main.c Outdated Show resolved Hide resolved
@nilason
Copy link
Contributor Author

nilason commented Nov 7, 2022

This is now ready, I'll proceed to merge soon if there are no objections.

@nilason nilason merged commit 5184a91 into OSGeo:main Nov 8, 2022
@nilason nilason deleted the fix_wall_warnings_09 branch November 9, 2022 08:46
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
marisn pushed a commit to marisn/grass that referenced this pull request Jun 2, 2023
@neteler neteler changed the title Fix -Wsometimes-uninitialized compiler warnings checks: Fix -Wsometimes-uninitialized compiler warnings Jun 6, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
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 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants