Nordix / hiredis-cluster

C client library for Valkey/Redis Cluster. This project is used and sponsored by Ericsson. It is a fork of the now unmaintained hiredis-vip.
BSD 3-Clause "New" or "Revised" License
87 stars 42 forks source link

Use -std=c99 in CMake builds #160

Closed bjosv closed 1 year ago

bjosv commented 1 year ago

This change enables -std=c99 (instead of -std=gnu99) when building the libraries using CMake, similar to the alternative build using a Makefile directly.

Tests still uses -std=gnu99 to enable additional functions like strdup() and types like pthread_rwlock_t. This makes it easier to add tests since a local compiler version might include different extensions compared to CI.