codereport / jsource

J Language Source Code. Livestream links ⬇️
https://www.youtube.com/playlist?list=PLVFrD1dmDdvfVhYLU_iKkV67X9XqCJLWe
Other
38 stars 20 forks source link

Fix compiling in GCC 8+ -Wno-cast-function-type #131

Closed Sebanisu closed 3 years ago

Sebanisu commented 3 years ago

adding this exception for the werror lets me compile again on gcc10

i think this resolves https://github.com/codereport/jsource/issues/126 ?

Sebanisu commented 3 years ago

hmm the switch that fixes gcc10 seems to not work on older version of gcc.

Sebanisu commented 3 years ago

hmm the switch that fixes gcc10 seems to not work on older version of gcc.

I added an if statement in cmakelists to check the version number of gcc to check for 8+