Commit fe822f8d authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add inline attribute.

* This way, gcc will not complain when size_t_c2f is unused.
parent 65a5b956
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# pragma GCC diagnostic ignored "-Wmissing-prototypes" # pragma GCC diagnostic ignored "-Wmissing-prototypes"
#endif #endif
static static inline
int size_t_c2f(size_t value_size_t) int size_t_c2f(size_t value_size_t)
{ {
assert(value_size_t < INT_MAX); assert(value_size_t < INT_MAX);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# pragma GCC diagnostic ignored "-Wmissing-prototypes" # pragma GCC diagnostic ignored "-Wmissing-prototypes"
#endif #endif
static static inline
int size_t_c2f(size_t value_size_t) int size_t_c2f(size_t value_size_t)
{ {
assert(value_size_t < INT_MAX); assert(value_size_t < INT_MAX);
......
...@@ -438,7 +438,7 @@ static void fortran_interface(char *fname, char *fnameinc, char *fnameint, ...@@ -438,7 +438,7 @@ static void fortran_interface(char *fname, char *fnameinc, char *fnameint,
"#endif\n" "#endif\n"
"\n", fpint); "\n", fpint);
fputs("static\n" fputs("static inline\n"
"int size_t_c2f(size_t value_size_t)\n" "int size_t_c2f(size_t value_size_t)\n"
"{\n" "{\n"
" assert(value_size_t < INT_MAX);\n" " assert(value_size_t < INT_MAX);\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment