Skip to content

Can't disable -Werror #11848

@dragoncoder047

Description

@dragoncoder047

I am trying to add Janet to my Arduino sketch, which (via using malloc and realloc) does a lot of implicit casts from void* to other pointer types.

Unfortunately when I try to compile, the compiler spits out error: invalid conversion from 'void*' to 'Janet*' [-fpermissive] (or another random pointer type that is not void*) hundreds of times and then aborts because "some warnings are being treated as errors." I know this code is not broken because Janet works :)

I don't have the time to go through and add (Janet*) casts to each and every one of these, so I'd rather just set the compiler to leave it a warning and not abort on warnings... but there doesn't seem to be a setting in the arduino settings to enable that. All the "Compiler warnings" dropdown setting does is change how many of these warnings come up. How do I actually disable this behavior?

I am using 1.8.13 on a Raspberry Pi and compiling for an ESP32.

Metadata

Metadata

Assignees

Labels

Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions