Skip to content
GitLab
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
4303dbf7
Commit
4303dbf7
authored
Apr 24, 2014
by
Uwe Schulzweida
Browse files
cdf_write_var_chunk: fixed gcc compiler warnings
parent
276ce76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
4303dbf7
...
...
@@ -3718,8 +3718,7 @@ void cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
if
(
zid
!=
UNDEFID
)
{
int
size
=
zaxisInqSize
(
zaxisID
);
xassert
(
rect
[
2
][
0
]
>=
0
&&
rect
[
2
][
0
]
<=
rect
[
2
][
1
]
&&
rect
[
2
][
1
]
<=
size
);
xassert
(
rect
[
2
][
0
]
>=
0
&&
rect
[
2
][
0
]
<=
rect
[
2
][
1
]
&&
rect
[
2
][
1
]
<=
size
);
start
[
ndims
]
=
rect
[
2
][
0
];
count
[
ndims
]
=
rect
[
2
][
1
]
-
rect
[
2
][
0
]
+
1
;
ndims
++
;
...
...
@@ -3728,8 +3727,7 @@ void cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
{
size_t
size
;
cdf_inq_dimlen
(
fileID
,
yid
,
&
size
);
xassert
(
rect
[
1
][
0
]
>=
0
&&
rect
[
1
][
0
]
<=
rect
[
1
][
1
]
&&
rect
[
1
][
1
]
<=
size
);
xassert
(
rect
[
1
][
0
]
>=
0
&&
rect
[
1
][
0
]
<=
rect
[
1
][
1
]
&&
rect
[
1
][
1
]
<=
(
int
)
size
);
start
[
ndims
]
=
rect
[
1
][
0
];
count
[
ndims
]
=
rect
[
1
][
1
]
-
rect
[
1
][
0
]
+
1
;
ndims
++
;
...
...
@@ -3738,8 +3736,7 @@ void cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
{
size_t
size
;
cdf_inq_dimlen
(
fileID
,
xid
,
&
size
);
xassert
(
rect
[
0
][
0
]
>=
0
&&
rect
[
0
][
0
]
<=
rect
[
0
][
1
]
&&
rect
[
0
][
1
]
<=
size
);
xassert
(
rect
[
0
][
0
]
>=
0
&&
rect
[
0
][
0
]
<=
rect
[
0
][
1
]
&&
rect
[
0
][
1
]
<=
(
int
)
size
);
start
[
ndims
]
=
rect
[
0
][
0
];
count
[
ndims
]
=
rect
[
0
][
1
]
-
rect
[
0
][
0
]
+
1
;
ndims
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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