armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Apache License 2.0
1.93k stars 435 forks source link

warnings fix #308

Open Bosiux opened 3 months ago

Bosiux commented 3 months ago

Warning pulled from compiler fixed

FlashDB_compilation

OS tested: RHEL 8, RHEL 9

This branch contains some changes to original code to cast trought forgot variation of data types moved from a function to another, look up changes to understand my edit.

status struct has been initialized to {0, 0} to prevent errors, if any errors occurs while using it, the final code result on DB should not be affected.

also FDB_PRINT() has been modified to match the required data types as args on different calls.