diff src/error.cc @ 3986:7cb85d5c7aad

[project @ 2002-07-11 15:37:02 by jwe]
author jwe
date Thu, 11 Jul 2002 15:37:02 +0000
parents fab8337340a1
children 8eaf7182d48a
line wrap: on
line diff
--- a/src/error.cc
+++ b/src/error.cc
@@ -352,6 +352,9 @@
 {
   if (Vwarning_option != "off")
     {
+      if (Vwarning_option == "backtrace" && ! warning_state)
+	pr_where ("warning");
+
       va_list args;
       va_start (args, fmt);
       vwarning ("warning", fmt, args);
@@ -359,9 +362,6 @@
 
       warning_state = 1;
 
-      if (Vwarning_option == "backtrace")
-	pr_where ("warning");
-
       if ((interactive || forced_interactive)
 	  && Vdebug_on_warning && curr_function)
 	{