-
-
Notifications
You must be signed in to change notification settings - Fork 25
Fix more C warnings #32
Copy link
Copy link
Closed
Labels
Component - BuildCMake, AutotoolsCMake, AutotoolsComponent - C LibraryCore C library issuesCore C library issuesComponent - TestingTest code, GitHub workflowsTest code, GitHub workflowsComponent - ToolsCommand-line tools like dumper and hdiffCommand-line tools like dumper and hdiffComponent - netCDFnetCDF interface and nc* command-line toolsnetCDF interface and nc* command-line toolsPriority - 3. Low 🔽Code cleanup, small feature change requests, etc.Code cleanup, small feature change requests, etc.Type - ImprovementImprovements that don't add a new feature or functionalityImprovements that don't add a new feature or functionality
Metadata
Metadata
Assignees
Labels
Component - BuildCMake, AutotoolsCMake, AutotoolsComponent - C LibraryCore C library issuesCore C library issuesComponent - TestingTest code, GitHub workflowsTest code, GitHub workflowsComponent - ToolsCommand-line tools like dumper and hdiffCommand-line tools like dumper and hdiffComponent - netCDFnetCDF interface and nc* command-line toolsnetCDF interface and nc* command-line toolsPriority - 3. Low 🔽Code cleanup, small feature change requests, etc.Code cleanup, small feature change requests, etc.Type - ImprovementImprovements that don't add a new feature or functionalityImprovements that don't add a new feature or functionality
There are still a lot of folks using hdf4 around (I'm one of them). I've seen a few fuzzer bugs in prior versions and am having trouble getting all the platforms I have to support working with the version at head (e.g. x86-64, ppc, and arm). Before trying to dig into more, I figured I'd start with my current default compiler and see if I can do some low risk code cleanup if folks are up for it. My initial run as seeing what compiler warnings are showing up:
I had trouble with being able to turn off
-pedantic, so I commented that out inhdf4/config/cmake/HDFCompilerFlags.cmake
Line 159 in 31f75f7
And here here in
hdf4/config/cmake/HDFCompilerFlags.cmake
Line 159 in 31f75f7
I will try to make some manageable pull requests that just address one of those compiler warnings at a time (as I have time).
Also, I see reference to things like VAX and
$Idthat are easy cleanups.