Fix va_start() macro compile warning on macOS

This commit is contained in:
Christopher Jones 2017-11-17 22:39:31 +11:00
parent a69112378d
commit 608ed3d6bc
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ static const char *errMsg[] = {
// error number doesn't fall within the valid error number range, an empty
// string is returned.
//-----------------------------------------------------------------------------
string njsMessages::Get(njsErrorType err, ...)
string njsMessages::Get(int err, ...)
{
char msg[NJS_MAX_ERROR_MSG_LEN + 1];
va_list vlist;

View File

@ -99,7 +99,7 @@ typedef enum {
//-----------------------------------------------------------------------------
class njsMessages {
public:
static string Get(njsErrorType err, ...);
static string Get(int err, ...);
};
#endif /* __NJSMESSAGES_H__ */