hirrolot / datatype99

Algebraic data types for C99
MIT License
1.38k stars 23 forks source link

pragma GCC diagnostic not allowed inside functions on GCC 4.4 #8

Closed widgetii closed 3 years ago

widgetii commented 3 years ago

I have an issue with match clause while using an ancient compiler for my embedded system:

error: #pragma GCC diagnostic not allowed inside functions

Any way to work around this?

GCC version: gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread

hirrolot commented 3 years ago

Must be fixed in https://github.com/Hirrolot/datatype99/commit/e4c8e4688612cb63e471d7f7f1dcd358089ed467, please update to the latest master and try again.