summaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 06:48:43 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 06:48:43 +0000
commit0903457a8fbc337677e7fa52c4f44934263f4447 (patch)
tree58234e1acd4f13f4f073a6ad3b59cad11faacb33 /gcc/c-format.c
parent512c9137754387fc3bcd18ac7f4bf63cda0c006a (diff)
downloadgcc-0903457a8fbc337677e7fa52c4f44934263f4447.tar.gz
* emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
* errors.c: Likewise. * final.c: Likewise. * dwarf2asm.c: Likewise. * doprint.c (checkit): Likewise. * diagnostic.c: Likewise. * collect2.c: Likewise. * calls.c: Likewise. * c-semantics.c (build_stmt): Likewise. * c-format.c (status_warning): Likewise. * c-errors.c (pedwarn_c99): Likewise. * builtins.c (validate_arglist): Likewise. * config/pj/pj.c (pj_printf): Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * gcov.c (fnotice): Likewise. * gensupport.c (message_with_line): Likewise. * mips-tfile.c: Likewise. * protoize.c (notice): Likewise. * read-rtl.c (fatal_with_file_and_line): Likewise. * rtl-error.c: Likewise. * tradcpp.c: Likewise. * tree.c: Likewise. * cp/tree.c (build_min_nt): Likewise. (build_min): Likewise. * cp/lex.c: Likewise. * cp/errfn.c: Likewise. * cp/rtti.c (create_pseudo_type_info): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r--gcc/c-format.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c
index 5ca4aceec46..d7ef210e4d4 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -1149,19 +1149,11 @@ check_function_format (status, name, assembler_name, params)
static void
status_warning VPARAMS ((int *status, const char *msgid, ...))
{
-#ifndef ANSI_PROTOTYPES
- int *status;
- const char *msgid;
-#endif
- va_list ap;
diagnostic_context dc;
- VA_START (ap, msgid);
-
-#ifndef ANSI_PROTOTYPES
- status = va_arg (ap, int *);
- msgid = va_arg (ap, const char *);
-#endif
+ VA_OPEN (ap, msgid);
+ VA_FIXEDARG (ap, int *, status);
+ VA_FIXEDARG (ap, const char *, msgid);
if (status)
*status = 1;
@@ -1173,7 +1165,7 @@ status_warning VPARAMS ((int *status, const char *msgid, ...))
report_diagnostic (&dc);
}
- va_end (ap);
+ VA_CLOSE (ap);
}
/* Variables used by the checking of $ operand number formats. */