Skip to content

Comments

Fix compiler warnings, part 3#1263

Closed
nilason wants to merge 3 commits intoOSGeo:masterfrom
nilason:fix-compiler-warnings-3
Closed

Fix compiler warnings, part 3#1263
nilason wants to merge 3 commits intoOSGeo:masterfrom
nilason:fix-compiler-warnings-3

Conversation

@nilason
Copy link
Contributor

@nilason nilason commented Jan 20, 2021

Fixes compiler warnings:

  • -Wnon-literal-null-conversion
  • -Wmacro-redefined
  • -Wpointer-bool-conversion

Third part addressing #1247.

Please see comments in code for fixes of -Wpointer-bool-conversionwarnings.

Modules / code parts directly affected:

  • db/db.select
  • lib/db/dbmi_base
  • vector/v.category
  • display/d.mon
  • imagery/i.landsat.toar
  • include/iostream

@nilason nilason mentioned this pull request Jan 20, 2021
27 tasks
@nilason nilason force-pushed the fix-compiler-warnings-3 branch from 26ef437 to 119cdbb Compare January 25, 2021 10:32
@nilason nilason marked this pull request as ready for review February 1, 2021 15:29
@nilason
Copy link
Contributor Author

nilason commented Feb 1, 2021

Updated the suggested changes.

Ready for review. For the time being I left the comments in code, but I will remove them before merge.

Copy link
Contributor

@metzm metzm left a comment

Choose a reason for hiding this comment

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

From my side, ready to merge, thanks a lot!

nilason and others added 2 commits February 2, 2021 08:43
Fixes -Wmacro-redefined compiler warning
…stant (OSGeo#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
nilason added a commit to nilason/grass that referenced this pull request Feb 2, 2021
which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
@nilason nilason force-pushed the fix-compiler-warnings-3 branch from 580fd51 to e7fba92 Compare February 2, 2021 07:51
@nilason
Copy link
Contributor Author

nilason commented Feb 2, 2021

Cleaned up comments in code and reworded the commit msgs.
Ready for merge.

which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
@nilason nilason force-pushed the fix-compiler-warnings-3 branch from e7fba92 to 6998445 Compare February 3, 2021 14:18
Copy link
Contributor

@metzm metzm left a comment

Choose a reason for hiding this comment

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

Ready for merge, thanks!

nilason added a commit that referenced this pull request Feb 4, 2021
Fixes -Wmacro-redefined compiler warning
nilason added a commit that referenced this pull request Feb 4, 2021
…stant (#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
nilason added a commit that referenced this pull request Feb 4, 2021
which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
@nilason
Copy link
Contributor Author

nilason commented Feb 4, 2021

Cherry picked and pushed manually.

Thanks @metzm !

@nilason nilason closed this Feb 4, 2021
@nilason nilason deleted the fix-compiler-warnings-3 branch February 4, 2021 07:39
marisn pushed a commit to marisn/grass that referenced this pull request Mar 22, 2021
Fixes -Wmacro-redefined compiler warning
marisn pushed a commit to marisn/grass that referenced this pull request Mar 22, 2021
…stant (OSGeo#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
marisn pushed a commit to marisn/grass that referenced this pull request Mar 22, 2021
which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
Fixes -Wmacro-redefined compiler warning
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
…stant (OSGeo#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
Fixes -Wmacro-redefined compiler warning
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
…stant (OSGeo#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <[email protected]>
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