Skip to content

#define unreachable() (__builtin_unreachable ()) redefined #311

@jslota13245

Description

@jslota13245

Dear Everyone, is there a reason why unreachable macro is guarded by #ifndef?

We get a warning saying we redefine a symbol from w64 gcc toolchain and we would like to silence it somehow.

tinycbor\src\compilersupport_p.h:182:11: warning: 'unreachable' redefined
182 | #  define unreachable() __builtin_unreachable()

w64devkit/lib/gcc/x86_64-w64-mingw32/15.2.0/include/stddef.h:469:9: note: this is the location of the previous definition
469 | #define unreachable() (__builtin_unreachable ())

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions