1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

New warnfixes (#2254)

* Fix clang warnings

* Remove vim tab guides

* initialize variables

* 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length

* Fix ISO C++17 does not allow 'register' storage class specifier for outdated bison

* chars are unsigned on ARM, having  if (ival < 0) always false

* chars are unsigned by default on ARM and comparison with -1 if always true
This commit is contained in:
Leonid Fedorov
2022-02-17 13:08:58 +03:00
committed by GitHub
parent 15a87ee510
commit 3919c541ac
325 changed files with 20 additions and 353 deletions

View File

@ -40,7 +40,6 @@
#include <boost/interprocess/shared_memory_object.hpp>
#include <boost/interprocess/mapped_region.hpp>
namespace bi = boost::interprocess;
#include <boost/scoped_array.hpp>
#include <boost/scoped_ptr.hpp>
@ -1076,8 +1075,8 @@ void VBBM::save(string filename)
}
var = VBBM_MAGIC_V2;
int bytesWritten = 0;
int bytesToWrite = 12;
[[maybe_unused]] int bytesWritten = 0;
[[maybe_unused]] int bytesToWrite = 12;
bytesWritten += out->write((char*)&var, 4);
bytesWritten += out->write((char*)&vbbm->vbCurrentSize, 4);
bytesWritten += out->write((char*)&vbbm->nFiles, 4);