From e3033bb0860511d42dd38962b1dda9d2c1f7b79d Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Fri, 19 May 1995 22:44:51 +0000 Subject: * defs.h (ATTR_FORMAT): New macro, expands to gcc's format attribute when compiled by gcc. * defs.h, language.h, monitor.h: Changed many function declarations to use ATTR_FORMAT. * breakpoint.c (delete_command); source.c (directory_command); top.c (define_command): Changed call to query() that had too many arguments. * printcmd.c (address_info): Changed call to printf_filtered() that had too many arguments. --- gdb/language.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/language.h') diff --git a/gdb/language.h b/gdb/language.h index 9e77acc..5c1e93b 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -395,10 +395,12 @@ op_error PARAMS ((char *fmt, enum exp_opcode, int)); op_error((f),(o),range_check==range_check_on ? 1 : 0) extern void -type_error PARAMS ((char *, ...)); +type_error PARAMS ((char *, ...)) + ATTR_FORMAT(printf, 1, 2); void -range_error PARAMS ((char *, ...)); +range_error PARAMS ((char *, ...)) + ATTR_FORMAT(printf, 1, 2); /* Data: Does this value represent "truth" to the current language? */ -- cgit v1.1