From: Mike D. Lowis Date: Tue, 9 Jun 2015 15:45:54 +0000 (-0400) Subject: Fixed some warnings X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=93e985dd96e7b92d090ba2aa5ff5fa0d789ac63f;p=proto%2Fgir.git Fixed some warnings --- diff --git a/source/main.c b/source/main.c index a38afcc..62d3413 100644 --- a/source/main.c +++ b/source/main.c @@ -1,14 +1,13 @@ -#include +#include /* Main *****************************************************************************/ -int main(int argc, char** argv) { +void main(int argc, char** argv) { extern void world_init(void); extern void exec_file(FILE* file, const char* prompt); world_init(); exec_file(stdin, ":> "); (void)argc; (void)argv; - return 0; } diff --git a/source/parser.c b/source/parser.c index 2257d7b..462b134 100644 --- a/source/parser.c +++ b/source/parser.c @@ -115,7 +115,7 @@ static void push_reduce(int type, int nchildren); // String Buffer static void strbuf_init(strbuf_t* buf); static void strbuf_putc(strbuf_t* buf, int ch); -static void strbuf_print(strbuf_t* buf, const char* str); +//static void strbuf_print(strbuf_t* buf, const char* str); static char* strbuf_string(strbuf_t* buf); @@ -543,11 +543,11 @@ static void strbuf_putc(strbuf_t* buf, int ch) buf->string[buf->index] = '\0'; } -static void strbuf_print(strbuf_t* buf, const char* str) -{ - while(*str) - strbuf_putc(buf, *str++); -} +//static void strbuf_print(strbuf_t* buf, const char* str) +//{ +// while(*str) +// strbuf_putc(buf, *str++); +//} static char* strbuf_string(strbuf_t* buf) {