diff libinterp/octave-value/ov-base.cc @ 21029:e3b3bb522d62

maint: Move GCC_ attributes to start of declaration for future compatibility. * error.cc, error.h, gripes.h, jit-typeinfo.cc, load-save.cc, oct-stream.cc, symtab.h, variables.h, ov-base.cc, ov-class.cc, ov-classdef.cc, ov-classdef.h, ov.cc, pt-mat.cc, dSparse.h, f77-fcn.h, lo-error.h, quit.h, lo-array-gripes.h: Move GCC_ attributes to start of declaration for future compatibility.
author Rik <rik@octave.org>
date Sun, 03 Jan 2016 10:58:15 -0800
parents 6176560b03d9
children 3e7cfee5f786
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.cc	Sun Jan 03 11:49:19 2016 +0100
+++ b/libinterp/octave-value/ov-base.cc	Sun Jan 03 10:58:15 2016 -0800
@@ -1297,21 +1297,24 @@
      << " dims: " << dv.str ();
 }
 
-static void GCC_ATTR_NORETURN
+GCC_ATTR_NORETURN static
+void
 gripe_indexed_assignment (const std::string& tn1, const std::string& tn2)
 {
   error ("assignment of '%s' to indexed '%s' not implemented",
          tn2.c_str (), tn1.c_str ());
 }
 
-static void GCC_ATTR_NORETURN
+GCC_ATTR_NORETURN static
+void
 gripe_assign_conversion_failed (const std::string& tn1, const std::string& tn2)
 {
   error ("type conversion for assignment of '%s' to indexed '%s' failed",
          tn2.c_str (), tn1.c_str ());
 }
 
-static void GCC_ATTR_NORETURN
+GCC_ATTR_NORETURN static
+void
 gripe_no_conversion (const std::string& on, const std::string& tn1,
                      const std::string& tn2)
 {