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

Fixed misc warnings #4208

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Fixed misc warnings #4208

merged 5 commits into from
Jul 31, 2024

Conversation

seanm
Copy link
Contributor

@seanm seanm commented Jul 25, 2024

A small collection of warning fixes.

The string "PJ_DATUMS_" is nowhere else in the codebase, so presumably it is leftover junk.
The warning was:

warning: cast from 'unsigned char *' to 'int *' increases required alignment from 1 to 4 [-Wcast-align]

An idiomatic solution is to use memcpy().
This function is unused when building with ENABLE_TIFF=OFF.

The warning was:

warning: unused function template 'insertIntoHierarchy' [-Wunused-template]
Only define _GNU_SOURCE  on Cygwin.

warning was:

warning: macro is not used [-Wunused-macros]
Warnings were:

warning: unused member function 'get_table' [-Wunused-member-function]

warning: unused member function 'clear' [-Wunused-member-function]

The string `get_table` appears nowhere else in the repository. The string `clear` does, being so generic, but things still compile after its removal, and these are tests, not public API.
@rouault rouault merged commit 6400b75 into OSGeo:master Jul 31, 2024
23 checks passed
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.

2 participants