summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-01-25 09:00:18 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-01-25 09:00:18 +0200
commit93756c992f18e86e380cb02078c4ba4cea123e5a (patch)
treeff3941b4f087333a47477d1ff8c3b66a7bf85894
parent050508672cbf711356e236b492104d3b9a6b1fb8 (diff)
downloadmariadb-git-93756c992f18e86e380cb02078c4ba4cea123e5a.tar.gz
MDEV-27229 fixup: GCC -Wunused-function
-rw-r--r--sql/opt_histogram_json.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/opt_histogram_json.cc b/sql/opt_histogram_json.cc
index de0b4ebab50..a749bc27e6e 100644
--- a/sql/opt_histogram_json.cc
+++ b/sql/opt_histogram_json.cc
@@ -1081,12 +1081,14 @@ void Histogram_json_hb::serialize(Field *field)
}
+#ifndef DBUG_OFF
static int SGN(int x)
{
if (!x)
return 0;
return (x < 0)? -1 : 1;
}
+#endif
/*