Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hash: fix build failure against gcc-10
On gcc-10 (and gcc-9 -fno-common) build fails as: ``` gcc -g -O2 -pthread -pthread -Wall -Werror -pedantic -Wmissing-prototypes \ -Wmissing-declarations -Wredundant-decls -o memcached ... -levent ld: memcached-hash.o:memcached/hash.h:5: multiple definition of `hash'; memcached-memcached.o:memcached/hash.h:5: first defined here ``` gcc-10 will change the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678. The error also happens if CFLAGS=-fno-common passed explicitly. Reported-by: Brian Evans Bug: https://bugs.gentoo.org/706196 Signed-off-by: Sergei Trofimovich <[email protected]>
- Loading branch information