viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.67k stars 1.49k forks source link

market kline open price error #248

Closed edwiincao closed 3 years ago

sonpython commented 2 years ago

this merge leads to build marketprice fail

mp_message.c:232:75: error: expected ';', ',' or ')' before '=' token
 static struct market_info *create_market(const char *market, mpd_t *price = mpd_zero)
                                                                           ^
mp_message.c: In function 'init_market':
mp_message.c:367:36: warning: implicit declaration of function 'create_market' [-Wimplicit-function-declaration]
         struct market_info *info = create_market(name);
                                    ^
mp_message.c:367:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
mp_message.c: In function 'market_update':
mp_message.c:431:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         info = create_market(market, price);
              ^
mp_message.c: At top level:
mp_message.c:62:17: warning: 'dict_time_key_hash_func' defined but not used [-Wunused-function]
 static uint32_t dict_time_key_hash_func(const void *key)
                 ^
mp_message.c:67:12: warning: 'dict_time_key_compare' defined but not used [-Wunused-function]
 static int dict_time_key_compare(const void *key1, const void *key2)
            ^
mp_message.c:72:14: warning: 'dict_time_key_dup' defined but not used [-Wunused-function]
 static void *dict_time_key_dup(const void *key)
              ^
mp_message.c:79:13: warning: 'dict_time_key_free' defined but not used [-Wunused-function]
 static void dict_time_key_free(void *key)
             ^
mp_message.c:84:13: warning: 'dict_kline_val_free' defined but not used [-Wunused-function]
 static void dict_kline_val_free(void *val)
             ^
mp_message.c:89:17: warning: 'dict_update_key_hash_func' defined but not used [-Wunused-function]
 static uint32_t dict_update_key_hash_func(const void *key)
                 ^
mp_message.c:94:12: warning: 'dict_update_key_compare' defined but not used [-Wunused-function]
 static int dict_update_key_compare(const void *key1, const void *key2)
            ^
mp_message.c:99:14: warning: 'dict_update_key_dup' defined but not used [-Wunused-function]
 static void *dict_update_key_dup(const void *key)
              ^
mp_message.c:106:13: warning: 'dict_update_key_free' defined but not used [-Wunused-function]
 static void dict_update_key_free(void *key)
             ^
mp_message.c:111:13: warning: 'list_deals_free' defined but not used [-Wunused-function]
 static void list_deals_free(void *val)
             ^
mp_message.c:116:13: warning: 'list_deals_json_free' defined but not used [-Wunused-function]
 static void list_deals_json_free(void *val)
             ^
make: *** [mp_message.o] Error 1
../makefile.inc:18: recipe for target 'mp_message.o' failed
nicett commented 2 years ago

How to solve it?

liuhuanhui commented 2 years ago

This is a problematic merger