summaryrefslogtreecommitdiff
path: root/gcc/errors.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-06-01 02:55:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-06-01 02:55:50 +0000
commit474b650ec3b4e39efeced7d6f5cdea4b1f2b035a (patch)
treebcb7c6a2fa72c50ffaeb41c824e8d351560aa249 /gcc/errors.h
parent4c714dd4a6abb732bde7d33d4660347ec0d0b897 (diff)
downloadgcc-474b650ec3b4e39efeced7d6f5cdea4b1f2b035a.tar.gz
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
Diffstat (limited to 'gcc/errors.h')
-rw-r--r--gcc/errors.h8
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;