Mercurial > hg > octave-lyh
changeset 14759:2feab289622a
Move variable declaration at the beginning of code block.
* libcruft/misc/lo-error.c (liboctave_fatal_with_id,
liboctave_warning_with_id): Move variable declaration at the beginning of
a code block.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Tue, 12 Jun 2012 19:44:09 +0100 |
parents | 43aa8d583b02 |
children | 8d3ab19f8599 |
files | libcruft/misc/lo-error.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libcruft/misc/lo-error.c +++ b/libcruft/misc/lo-error.c @@ -110,8 +110,8 @@ void liboctave_fatal_with_id (const char *id, const char *fmt, ...) { + va_list args; (void) id; /*unused*/ - va_list args; va_start (args, fmt); verror ("fatal", fmt, args); va_end (args); @@ -131,8 +131,8 @@ void liboctave_warning_with_id (const char *id, const char *fmt, ...) { + va_list args; (void) id; /*unused*/ - va_list args; va_start (args, fmt); verror ("warning", fmt, args); va_end (args);