guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.8k stars 223 forks source link

error: unknown option after ‘#pragma GCC diagnostic’ kind #151

Closed fleinen closed 5 years ago

fleinen commented 5 years ago

Hi, I have an error that looks similar to #137. I am using Ubuntu 18.04 and I've installed all dependencies. The error occurs while building using make release

src/utils/ini.c:20:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
 #pragma GCC diagnostic ignored "-Wstringop-truncation"
                                ^~~~~~~~~~~~~~~~~~~~~~~
cc1: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-unknow-pragma’ [-Werror]
cc1: all warnings being treated as errors
scons: *** [src/utils/ini.o] Error 1
scons: building terminated because of errors.
Makefile:8: recipe for target 'release' failed
make: *** [release] Error 2

What am I doing wrong? Best

guillaumechereau commented 5 years ago

Can you tell me what's your version of gcc ?

gcc --version
fleinen commented 5 years ago

It's gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

guillaumechereau commented 5 years ago

I just pushed a potential fix. Can you try again?

fleinen commented 5 years ago

Works now. Thank you!

vijayanandmit commented 2 years ago

i'm facing a similar issue with #pragma GCC diagnostic ignored "-Wno-psabi"

May i know the fix ?