summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-09 11:25:10 +0200
committerantirez <antirez@gmail.com>2015-07-09 11:25:29 +0200
commit1e12784259483991710183d127dc3abd4bd21f56 (patch)
tree2cb6b85b4f87752bb8d4379460c7c52e3fb1b8eb
parent5e04189887ed9100577374cede428c62d23fabe4 (diff)
downloadredis-1e12784259483991710183d127dc3abd4bd21f56.tar.gz
Geo: -Ofast breaks builds on older GCCs.
-rw-r--r--deps/geohash-int/Makefile2
-rw-r--r--src/geo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/deps/geohash-int/Makefile b/deps/geohash-int/Makefile
index bf9eaebb8..b7c259577 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 90c59c807..35931f4f5 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,