changeset 28966:b02d9109fb6e

mkoctfile: prefix warning messages with program name * mkoctfile.in.cc: Prefix all warning messages with "mkoctfile: ".
author John W. Eaton <jwe@octave.org>
date Tue, 20 Oct 2020 01:29:00 -0400
parents d24e34e179ab
children 437e04d9c449
files src/mkoctfile.in.cc
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/mkoctfile.in.cc	Tue Oct 20 01:35:35 2020 -0400
+++ b/src/mkoctfile.in.cc	Tue Oct 20 01:29:00 2020 -0400
@@ -356,7 +356,7 @@
   // FIXME: Remove LFLAGS in Octave 8.0
   vars["LFLAGS"] = get_variable ("LFLAGS", DEFAULT_LDFLAGS);
   if (vars["LFLAGS"] != DEFAULT_LDFLAGS)
-    std::cerr << "warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead" << std::endl;
+    std::cerr << "mkoctfile: warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead" << std::endl;
 
   vars["F77_INTEGER8_FLAG"] = get_variable ("F77_INTEGER8_FLAG",
                                             %OCTAVE_CONF_F77_INTEGER_8_FLAG%);
@@ -804,7 +804,7 @@
         }
       else if (arg == "-largeArrayDims" || arg == "-compatibleArrayDims")
         {
-          std::cerr << "warning: -largeArrayDims and -compatibleArrayDims are accepted for compatibility, but ignored" << std::endl;
+          std::cerr << "mkoctfile: warning: -largeArrayDims and -compatibleArrayDims are accepted for compatibility, but ignored" << std::endl;
         }
       else if (arg == "-R2017b")
         {
@@ -866,7 +866,7 @@
 
               // FIXME: Remove LFLAGS checking in Octave 7.0
               if (! strcmp (argv[i], "LFLAGS"))
-                std::cerr << "warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead" << std::endl;
+                std::cerr << "mkoctfile: warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead" << std::endl;
 
               if (! var_to_print.empty ())
                 std::cerr << "mkoctfile: warning: only one '" << arg
@@ -983,11 +983,11 @@
   else
     {
       if (r2017b_option)
-        std::cerr << "warning: -R2017b option ignored unless creating mex file"
+        std::cerr << "mkoctfile: warning: -R2017b option ignored unless creating mex file"
                   << std::endl;
 
       if (r2018a_option)
-        std::cerr << "warning: -R2018a option ignored unless creating mex file"
+        std::cerr << "mkoctfile: warning: -R2018a option ignored unless creating mex file"
                   << std::endl;
     }