silence some warnings for MSVC

This commit is contained in:
Krasimir Angelov
2023-01-26 09:07:41 +01:00
parent c327b7e1d9
commit 74e0880eca
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include <malloc.h>
#define alloca _alloca
#define strdup _strdup
#pragma warning(disable : 4996)
#endif

View File

@@ -415,7 +415,7 @@ PgfDB::PgfDB(const char* filepath, int flags, int mode) {
last_free_block = 0;
last_free_block_size = 0;
last_free_block_txn_id= 0;
seed = time(NULL);
seed = (unsigned long int) time(NULL);
}
PGF_INTERNAL