Skip to content

[Feat] Fix compiler warnings #1247

@nilason

Description

@nilason

The number of compiler warnings are very high, with gcc there are about 140 and with clang about 300 warnings. Most are perhaps trivial and just annoyance, but who knows...
They not only add a lot of noise to build log (you might add to these some 200+ OpenGL deprecation warnings for Mac, and the ctypes warnings addressed in #507), they also make it very difficult to discover any new potential problems.

Describe the solution you'd like
The best would be to address the warnings in the source.

Describe alternatives you've considered
It is possible, but in general not advisable, to suppress the warnings with compiler flags.

Additional context

Warning Type (No. of Warnings)
Apple clang version 12.0.0 (clang-1200.0.32.21)

gcc -std=gnu17 x86_64-pc-linux-gnu (CI)

OSGeo4W (CI)

See also https://trac.osgeo.org/grass/ticket/3368.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions