Univalue: Do not build JSON escape list at runtime
No need to waste startup time building something that can be done at compile time. This also resolves a clang++ warning originally reported in #4714, univalue/univalue_write.cpp:33:12: warning: array subscript is of type 'char escapes['"'] = "\\""; ^~~~ etc.
This commit is contained in:
@@ -187,6 +187,7 @@ univalue_libbitcoin_univalue_a_SOURCES = \
|
||||
univalue/univalue.cpp \
|
||||
univalue/univalue_read.cpp \
|
||||
univalue/univalue_write.cpp \
|
||||
univalue/univalue_escapes.h \
|
||||
univalue/univalue.h
|
||||
|
||||
# common: shared between bitcoind, and bitcoin-qt and non-server tools
|
||||
|
||||
Reference in New Issue
Block a user