diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-01 02:55:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-01 02:55:50 +0000 |
commit | 99cb78916fc2fc2068f7cab2821561c252c47fb8 (patch) | |
tree | bcb7c6a2fa72c50ffaeb41c824e8d351560aa249 /gcc/errors.h | |
parent | 690abe5d53b82816154cb4f25f1ba9b366097ec5 (diff) | |
download | gcc-99cb78916fc2fc2068f7cab2821561c252c47fb8.tar.gz |
* errors.h (warning, error, fatal, internal_error): Add printf
attribute.
* genmodes.c (make_vector_mode): Fix format arguments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/errors.h')
-rw-r--r-- | gcc/errors.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/errors.h b/gcc/errors.h index 9aa87e72852..cc0c4a07b96 100644 --- a/gcc/errors.h +++ b/gcc/errors.h @@ -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; |