verbosity
This commit is contained in:
+11
-1
@@ -6,7 +6,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <khash/khash.h>
|
||||
#include <khash.h>
|
||||
#include <crypto/crypto.h>
|
||||
#include <block/transaction.h>
|
||||
#include <string.h>
|
||||
@@ -33,7 +33,17 @@ typedef struct {
|
||||
// TODO: Additional things
|
||||
} balance_sheet_entry_t;
|
||||
|
||||
// KHASH_INIT expands to khash's own implementation, which is not -Wconversion
|
||||
// clean. -isystem silences the header itself but not code expanded from its
|
||||
// macros, because the diagnostic is attributed to this line.
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif
|
||||
KHASH_INIT(balance_sheet_map_m, key32_t, balance_sheet_entry_t, 1, hash_key32, eq_key32)
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
extern khash_t(balance_sheet_map_m)* sheetMap;
|
||||
|
||||
void BalanceSheet_Init();
|
||||
|
||||
+10
-1
@@ -2,11 +2,20 @@
|
||||
#define TXMEMPOOL_H
|
||||
|
||||
#include <block/transaction.h>
|
||||
#include <khash/khash.h>
|
||||
#include <khash.h>
|
||||
#include <utils.h>
|
||||
#include <uint256.h>
|
||||
|
||||
// See balance_sheet.h: khash's macro expansion is not -Wconversion clean, and
|
||||
// -isystem does not cover code expanded from a system header's macros.
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif
|
||||
KHASH_INIT(tx_mempool_map_m, key32_t, signed_transaction_t, 1, hash_key32, eq_key32)
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
extern khash_t(tx_mempool_map_m)* txMempool;
|
||||
|
||||
void TxMempool_Init();
|
||||
|
||||
Reference in New Issue
Block a user