aboutsummaryrefslogtreecommitdiff
path: root/gcc/tradcpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tradcpp.c')
-rw-r--r--gcc/tradcpp.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c
index ef51248..4bc9818 100644
--- a/gcc/tradcpp.c
+++ b/gcc/tradcpp.c
@@ -328,12 +328,15 @@ void delete_macro PARAMS ((HASHNODE *));
/* First arg to v_message. */
enum msgtype { WARNING = 0, ERROR, FATAL };
void v_message PARAMS ((enum msgtype mtype, int line,
- const char *msgid, va_list ap));
-
-void warning PARAMS ((const char *msgid, ...));
-void error PARAMS ((const char *msgid, ...));
-void fatal PARAMS ((const char *msgid, ...)) ATTRIBUTE_NORETURN;
-void error_with_line PARAMS ((int, const char *msgid, ...));
+ const char *msgid, va_list ap))
+ ATTRIBUTE_PRINTF (3, 0);
+
+void warning PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
+void error PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
+void fatal PARAMS ((const char *msgid, ...)) ATTRIBUTE_NORETURN
+ ATTRIBUTE_PRINTF_1;
+void error_with_line PARAMS ((int, const char *msgid, ...))
+ ATTRIBUTE_PRINTF_2;
void error_from_errno PARAMS ((const char *msgid));
void perror_with_name PARAMS ((const char *msgid));