Skip to content

Find way to get rid of compiler warnings #76

@SpenceKonde

Description

@SpenceKonde

The 1634, 828, and x41 chips give warnings about int-to-pointer cast. I do not know how to make these warnings go away without changing the progmem byte arrays to ints, and thus wasting flash space.

I have not been able to find a compiler flag to turn off the warnings. Some posts discussing this confidently asserted that there was no such flag, and spoke of the thing it was warning about in such terms as if I wished to shake hands with Satan himself, and you should never disable the warning because there's no legitimate reason to do it (clearly said by people who don't write code that has to fit in 1024 instruction words).

However, other posts I have read imply that there's an easy work around that nobody bothered talking about because it's so obvious. I have no idea, and consider this a low priority as it does not impact compilation.

Metadata

Metadata

Assignees

Labels

Pre-2.0.0 bugBug present in versions of the core older than 2.0.0 - needs to be reteted in 2.0.0help wanted

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions