Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
222fce89
Commit
222fce89
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Declare variable only when used.
parent
a5cb1e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/pio_write.c
View file @
222fce89
...
...
@@ -33,6 +33,7 @@ static const struct model_config default_setup
.
max_nlev
=
5
,
};
#ifdef USE_MPI
static
const
struct
{
char
*
text
;
int
mode
;
...
...
@@ -42,6 +43,7 @@ static const struct {
{
"PIO_ASYNCH"
,
PIO_ASYNCH
},
{
"PIO_WRITER"
,
PIO_WRITER
}
};
#endif
static
const
struct
{
char
suffix
[
4
];
...
...
@@ -74,6 +76,7 @@ parse_intarg(const char msg[])
return
(
int
)
temp
;
}
#ifdef USE_MPI
static
inline
int
search_iomode_str
(
const
char
*
modestr
)
{
...
...
@@ -88,6 +91,7 @@ search_iomode_str(const char *modestr)
}
return
retval
;
}
#endif
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
Write
Preview
Markdown
is supported
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