Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
fe822f8d
Commit
fe822f8d
authored
Jan 25, 2018
by
Thomas Jahns
🤸
Browse files
Add inline attribute.
* This way, gcc will not complain when size_t_c2f is unused.
parent
65a5b956
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cdiFortran.c
View file @
fe822f8d
...
...
@@ -29,7 +29,7 @@
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
#endif
static
static
inline
int
size_t_c2f
(
size_t
value_size_t
)
{
assert
(
value_size_t
<
INT_MAX
);
...
...
src/cdipioFortran.c
View file @
fe822f8d
...
...
@@ -29,7 +29,7 @@
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
#endif
static
static
inline
int
size_t_c2f
(
size_t
value_size_t
)
{
assert
(
value_size_t
<
INT_MAX
);
...
...
src/make_fint.c
View file @
fe822f8d
...
...
@@ -438,7 +438,7 @@ static void fortran_interface(char *fname, char *fnameinc, char *fnameint,
"#endif
\n
"
"
\n
"
,
fpint
);
fputs
(
"static
\n
"
fputs
(
"static
inline
\n
"
"int size_t_c2f(size_t value_size_t)
\n
"
"{
\n
"
" assert(value_size_t < INT_MAX);
\n
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment