Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marketprice compilation error #289

Open
nicett opened this issue Sep 17, 2021 · 2 comments
Open

marketprice compilation error #289

nicett opened this issue Sep 17, 2021 · 2 comments

Comments

@nicett
Copy link

nicett commented Sep 17, 2021

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

@haipome

@BrianPHChen
Copy link

Hi, I have the exact problem, too.
Anyone can help?

@sleepcodebed
Copy link

remove the default value of the function's paramter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants