-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/lang.c: 2 * bad parameter to va_start ? #68
Comments
This is as intended - Apart from adding some comments saying "this will emit a warning, this is intended", or maybe some |
Suggest look again. I checked the reference manual for C and the only thing va_start |
Oh, truly. For whatever reason I was convinced that |
Fixed in f55e41b. |
src/lang.c:59]: (warning) 'msgstr' given to va_start() is not last named argument of the function. Did you intend to pass 'msgid'?
Source code is
int lang_print(FILE *const file, const enum MessageID msgid, ...) {
char *msgstr = lang_getmsg(msgid);
if(msgstr == NULL) return -1;
Also:
src/lang.c:71]: (warning) 'msgstr' given to va_start() is not last named argument of the function. Did you intend to pass 'number'?
Duplicate.
The text was updated successfully, but these errors were encountered: