fix build
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ int xfputs(pic_state *pic, const char *s, xFILE *stream) {
|
||||
}
|
||||
|
||||
char *xfgets(pic_state *pic, char *s, int size, xFILE *stream) {
|
||||
int c;
|
||||
int c = 0;
|
||||
char *buf;
|
||||
|
||||
xfflush(pic, NULL);
|
||||
|
||||
@@ -131,10 +131,10 @@ typedef unsigned long uint32_t;
|
||||
|
||||
#define PIC_FALLTHROUGH ((void)0)
|
||||
|
||||
#if __cplusplus
|
||||
#if defined(__cplusplus)
|
||||
# define PIC_UNUSED(v)
|
||||
#elif __GNUC__ || __clang__
|
||||
# define PIC_UNUSED(v) __attribute__((unused)) v
|
||||
# define PIC_UNUSED(v) v __attribute__((unused))
|
||||
#else
|
||||
# define PIC_UNUSED(v) v
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ void
|
||||
pic_make_library(pic_state *pic, const char *lib)
|
||||
{
|
||||
khash_t(ltable) *h = &pic->ltable;
|
||||
const char *old_lib;
|
||||
const char *old_lib = NULL;
|
||||
pic_value name, env, exports;
|
||||
int it;
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user