comparison libinterp/corefcn/load-save.cc @ 21028: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
comparison
equal deleted inserted replaced
21027:4a7d9c335402 21028:e3b3bb522d62
124 // The format string for the comment line at the top of text-format 124 // The format string for the comment line at the top of text-format
125 // save files. Passed to strftime. Should begin with '#' and contain 125 // save files. Passed to strftime. Should begin with '#' and contain
126 // no newline characters. 126 // no newline characters.
127 static std::string Vsave_header_format_string = default_save_header_format (); 127 static std::string Vsave_header_format_string = default_save_header_format ();
128 128
129 static void GCC_ATTR_NORETURN 129 GCC_ATTR_NORETURN static
130 void
130 gripe_file_open (const std::string& fcn, const std::string& file) 131 gripe_file_open (const std::string& fcn, const std::string& file)
131 { 132 {
132 if (fcn == "load") 133 if (fcn == "load")
133 error ("%s: unable to open input file '%s'", fcn.c_str (), file.c_str ()); 134 error ("%s: unable to open input file '%s'", fcn.c_str (), file.c_str ());
134 else if (fcn == "save") 135 else if (fcn == "save")