Skip to content

incompatible-pointer-types-discards-qualifiers in mfhdf/libsrc/putget.c #623

@schwehr

Description

@schwehr

This is with llvm from it's main branch about 2-3 weeks ago. From hdf4 at a6eec0d

I'm still seeing one compiler warning that is probably pretty easy to fix.

third_party/hdf4/mfhdf/libsrc/putget.c:1417:45: error: passing 'const void *' to parameter of type 'char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
 1417 |     return (NCvar1io(handle, varid, coords, value));
      |                                             ^~~~~
third_party/hdf4/mfhdf/libsrc/putget.c:1353:59: note: passing argument to parameter 'value' here
 1353 | NCvar1io(NC *handle, int varid, const long *coords, Void *value)
      | 

Metadata

Metadata

Assignees

Labels

Component - C LibraryCore C library issuesComponent - netCDFnetCDF interface and nc* command-line toolsPriority - 3. Low 🔽Code cleanup, small feature change requests, etc.Type - ImprovementImprovements that don't add a new feature or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions