Browse Source

Compatible to ISO C99.

master
CismonX 8 months ago
parent
commit
97ed3400c3
Signed by: CismonX GPG Key ID: 3094873E29A482FB
  1. 2
      src/logging.h
  2. 2
      src/parser.c

2
src/logging.h

@ -98,6 +98,6 @@ const char*
u6a_logging_get_prog_name_();
#define u6a_info_verbose(stage, info_message, ...) \
u6a_info_verbose_("%s: [%s] " info_message ".\n", u6a_logging_get_prog_name_(), stage, ##__VA_ARGS__)
u6a_info_verbose_("%s: [%s] " info_message ".\n", u6a_logging_get_prog_name_(), stage, __VA_ARGS__)
#endif

2
src/parser.c

@ -75,7 +75,7 @@ u6a_parse(struct u6a_token* token_arr, uint32_t token_len, struct u6a_ast_node**
}
free(pstack);
*ast_arr = ast;
u6a_info_verbose(info_parse, "completed");
u6a_info_verbose(info_parse, "%s", "completed");
return true;
parse_failed:

Loading…
Cancel
Save