1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-26519 fixup: GCC 11 -Og -Wmaybe-uninitialized

GCC does not understand that the variable have_ndv determines
whether the variable ndv_ll is initialized. Let us add a
redundant initialization to pacify GCC.
This commit is contained in:
Marko Mäkelä
2022-01-20 08:24:03 +02:00
parent da78030ec8
commit 852534dc99

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2021, MariaDB Corporation.
Copyright (c) 2021, 2022, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -611,7 +611,7 @@ int Histogram_json_hb::parse_bucket(json_engine_t *je, Field *field,
bool have_ndv= false;
double size_d;
longlong ndv_ll;
longlong ndv_ll= 0;
StringBuffer<128> value_buf;
int rc;