diff --git a/bstring/bstraux.c b/bstring/bstraux.c index 15794ab..f331c47 100644 --- a/bstring/bstraux.c +++ b/bstring/bstraux.c @@ -1004,7 +1004,7 @@ bSecureInput(int maxlen, int termchar, bNgetc vgetchar, void *vgcCtx) for (i = 0; ; i++) { if ((size_t)termchar == c || (maxlen > 0 && i >= (size_t)maxlen)) { - c = EOF; + c = (size_t)EOF; } else { c = vgetchar (vgcCtx); } diff --git a/bstring/bstrlib.h b/bstring/bstrlib.h index 98c283a..0e61bc5 100644 --- a/bstring/bstrlib.h +++ b/bstring/bstrlib.h @@ -57,6 +57,10 @@ __attribute__ ((__format__ (__printf__, format, argument))) #define BSTR_UNUSED \ __attribute__ ((__unused__)) +#elif defined(_MSC_VER) +#define BSTR_PRINTF(format, argument) +#define BSTR_UNUSED \ + __pragma(warning(suppress:4100)) #else #define BSTR_PRINTF(format, argument) #define BSTR_UNUSED