mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
sim: igen: mark output funcs with printf attribute
... and fix the legitimate bug that it catches.
This commit is contained in:
@ -448,7 +448,7 @@ parse_insn_words (insn_entry * insn, char *formats)
|
|||||||
the same size */
|
the same size */
|
||||||
if (f->width != refered_field->width)
|
if (f->width != refered_field->width)
|
||||||
error (insn->line,
|
error (insn->line,
|
||||||
"Conditional `%s' of field `%s' should be of size %s\n",
|
"Conditional `%s' of field `%s' should be of size %i\n",
|
||||||
cond->string, f->val_string,
|
cond->string, f->val_string,
|
||||||
refered_field->width);
|
refered_field->width);
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,7 @@ enum
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if !defined (__attribute__) && (!defined(__GNUC__) || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
|
#include "ansidecl.h"
|
||||||
#define __attribute__(arg)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "filter_host.h"
|
#include "filter_host.h"
|
||||||
|
|
||||||
@ -52,7 +48,8 @@ struct _line_ref
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Error appends a new line, warning and notify do not */
|
/* Error appends a new line, warning and notify do not */
|
||||||
typedef void error_func (const line_ref *line, const char *msg, ...);
|
typedef void error_func (const line_ref *line, const char *msg, ...)
|
||||||
|
ATTRIBUTE_PRINTF (2, 3);
|
||||||
|
|
||||||
extern error_func error;
|
extern error_func error;
|
||||||
extern error_func warning;
|
extern error_func warning;
|
||||||
|
Reference in New Issue
Block a user