From 1e12784259483991710183d127dc3abd4bd21f56 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 9 Jul 2015 11:25:10 +0200 Subject: [PATCH] Geo: -Ofast breaks builds on older GCCs. --- deps/geohash-int/Makefile | 2 +- src/geo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/geohash-int/Makefile b/deps/geohash-int/Makefile index bf9eaebb..b7c25957 100644 --- a/deps/geohash-int/Makefile +++ b/deps/geohash-int/Makefile @@ -1,6 +1,6 @@ STD= WARN= -Wall -OPT= -Ofast +OPT= -O2 R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) R_LDFLAGS= $(LDFLAGS) diff --git a/src/geo.c b/src/geo.c index 90c59c80..35931f4f 100644 --- a/src/geo.c +++ b/src/geo.c @@ -580,7 +580,7 @@ void georadiusByMemberCommand(redisClient *c) { georadiusGeneric(c, RADIUS_MEMBER); } -/* GEODECODE long lat */ +/* GEODECODE score */ void geodecodeCommand(redisClient *c) { GeoHashBits geohash; if (getLongLongFromObjectOrReply(c, c->argv[1], (long long *)&geohash.bits,