antirez / sds

Simple Dynamic Strings library for C
BSD 2-Clause "Simplified" License
4.89k stars 473 forks source link

fix SDS_NOINIT declaration for gcc -fno-common #120

Closed ddiss closed 3 years ago

ddiss commented 4 years ago

SDS_NOINIT is currently declared in sds.h without extern, resulting in multiple definitions across sds.h consumers. With GCC 10, the default of -fcommon option will change to -fno-common, resulting in an error.

ddiss commented 3 years ago

It looks as though this repo has been abandoned. Closing this so that it no longer appears in my PR queue