astroscrappy icon indicating copy to clipboard operation
astroscrappy copied to clipboard

astroscrappy fails to build with gcc15

Open sergiopasra opened this issue 10 months ago • 0 comments

In Fedora Linux we are compiling astroscrappy with the new GCC15, that by default uses C23 dialect for C.

The problem is that bool, true and false are reserved words in C23, so constructions like the following are ilegal:

https://github.com/astropy/astroscrappy/blob/3a792c8388835d591fe71bb734e8ac5b2b8169d8/astroscrappy/utils/imutils.h#L18-L21

https://gcc.gnu.org/gcc-15/porting_to.html#c23

sergiopasra avatar Feb 13 '25 22:02 sergiopasra