errors.h (warning, [...]): Add printf attribute.
* errors.h (warning, error, fatal, internal_error): Add printf attribute. * genmodes.c (make_vector_mode): Fix format arguments. From-SVN: r100421
This commit is contained in:
parent
4c714dd4a6
commit
474b650ec3
@ -1,3 +1,9 @@
|
||||
2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* errors.h (warning, error, fatal, internal_error): Add printf
|
||||
attribute.
|
||||
* genmodes.c (make_vector_mode): Fix format arguments.
|
||||
|
||||
2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
|
||||
|
@ -30,10 +30,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#ifndef GCC_ERRORS_H
|
||||
#define GCC_ERRORS_H
|
||||
|
||||
extern void warning (int, const char *, ...);
|
||||
extern void error (const char *, ...);
|
||||
extern void fatal (const char *, ...) ATTRIBUTE_NORETURN;
|
||||
extern void internal_error (const char *, ...) ATTRIBUTE_NORETURN;
|
||||
extern void warning (int, const char *, ...) ATTRIBUTE_PRINTF_2;
|
||||
extern void error (const char *, ...) ATTRIBUTE_PRINTF_1;
|
||||
extern void fatal (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1;
|
||||
extern void internal_error (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1;
|
||||
extern const char *trim_filename (const char *);
|
||||
|
||||
extern int have_error;
|
||||
|
@ -620,7 +620,7 @@ make_vector_mode (enum mode_class bclass,
|
||||
ncomponents, base) >= sizeof namebuf)
|
||||
{
|
||||
error ("%s:%d: mode name \"%s\" is too long",
|
||||
base, file, line);
|
||||
file, line, base);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user