Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyuichi committed Aug 26, 2015
1 parent 06af026 commit 98034b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extlib/benz/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ pic_str_list_to_string(pic_state *pic)
{
pic_str *str;
pic_value list, e, it;
size_t i = 0;
size_t i;
char *buf;

pic_get_args(pic, "o", &list);
Expand All @@ -653,6 +653,7 @@ pic_str_list_to_string(pic_state *pic)
buf = pic_malloc(pic, pic_length(pic, list));

pic_try {
i = 0;
pic_for_each (e, list, it) {
pic_assert_type(pic, e, char);

Expand Down
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ main(int argc, char *argv[], char **envp)
{
pic_state *pic;
struct pic_lib *PICRIN_MAIN;
int status = 0;
int status;

pic = pic_open(pic_default_allocf, NULL);
pic_set_argv(pic, argc, argv, envp);
Expand All @@ -50,6 +50,8 @@ main(int argc, char *argv[], char **envp)
PICRIN_MAIN = pic_find_library(pic, pic_read_cstr(pic, "(picrin main)"));

pic_funcall(pic, PICRIN_MAIN, "main", pic_nil_value());

status = 0;
}
pic_catch {
pic_print_backtrace(pic, xstderr);
Expand Down

0 comments on commit 98034b5

Please sign in to comment.