Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
acc8b75a
Commit
acc8b75a
authored
Feb 01, 2018
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- several "duplicate const" warnings fixed
- some useless tests whether an unsigned int is less than zero removed
parent
078a51d6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
28 deletions
+20
-28
src/h5core/h5u_model.c
src/h5core/h5u_model.c
+2
-8
src/h5core/private/h5_hdf5.c
src/h5core/private/h5_hdf5.c
+1
-1
src/h5core/private/h5_hdf5.h
src/h5core/private/h5_hdf5.h
+15
-15
src/h5core/private/h5_maps.c
src/h5core/private/h5_maps.c
+1
-1
src/h5core/private/h5_maps.h
src/h5core/private/h5_maps.h
+1
-1
src/h5core/private/h5t_core.h
src/h5core/private/h5t_core.h
+0
-2
No files found.
src/h5core/h5u_model.c
View file @
acc8b75a
...
...
@@ -130,13 +130,7 @@ h5u_set_num_points (
hsize_t
start
;
hsize_t
dmax
=
H5S_UNLIMITED
;
if
(
nparticles
<
0
)
H5_RETURN_ERROR
(
H5_ERR_INVAL
,
"Invalid number of particles: %lld!
\n
"
,
(
long
long
)
nparticles
);
#ifndef H5_HAVE_PARALLEL
#ifndef H5_HAVE_PARALLEL
/*
if we are not using parallel-IO, there is enough information
to know that we can short circuit this routine. However,
...
...
@@ -231,7 +225,7 @@ h5u_set_num_points (
h5_err_t
h5u_has_view
(
const
const
h5_file_t
fh
const
h5_file_t
fh
)
{
h5_file_p
f
=
(
h5_file_p
)
fh
;
H5_CORE_API_ENTER
(
h5_ssize_t
,
"f=%p"
,
f
);
...
...
src/h5core/private/h5_hdf5.c
View file @
acc8b75a
...
...
@@ -23,7 +23,7 @@
h5_err_t
h5priv_link_exists_
(
const
hid_t
loc_id
,
const
char
const
*
path
[],
const
char
*
const
path
[],
size_t
size
)
{
H5_PRIV_FUNC_ENTER
(
h5_err_t
,
...
...
src/h5core/private/h5_hdf5.h
View file @
acc8b75a
...
...
@@ -163,12 +163,12 @@ hdf5_create_group (
h5_err_t
h5priv_link_exists_
(
const
hid_t
loc_id
,
const
char
const
*
path
[],
const
char
*
const
path
[],
size_t
size
);
#define h5priv_link_exists(loc_id, ...) \
(h5priv_link_exists_ (loc_id, \
(const char
const*
[]){__VA_ARGS__}, \
(const char
*const
[]){__VA_ARGS__}, \
PP_NARG(__VA_ARGS__)))
...
...
@@ -195,7 +195,7 @@ hdf5_close_group (
static
inline
hid_t
h5priv_create_group
(
const
hid_t
loc_id
,
const
char
const
*
group_name
const
char
*
const
group_name
)
{
H5_PRIV_FUNC_ENTER
(
hid_t
,
"loc_id=%lld, (%s), group_name=%s"
,
...
...
@@ -214,7 +214,7 @@ h5priv_create_group (
static
inline
hid_t
h5priv_open_group
(
const
hid_t
loc_id
,
const
char
const
*
group_name
const
char
*
const
group_name
)
{
H5_PRIV_FUNC_ENTER
(
hid_t
,
"loc_id=%lld, (%s), group_name=%s"
,
...
...
@@ -809,17 +809,17 @@ get_class_type_name (
const
hid_t
class_id
)
{
const
char
*
const
map
[]
=
{
[
H5T_INTEGER
]
"H5T_INTEGER"
,
[
H5T_FLOAT
]
"H5T_FLOAT"
,
[
H5T_TIME
]
"H5T_TIME"
,
[
H5T_STRING
]
"H5T_STRING"
,
[
H5T_BITFIELD
]
"H5T_BITFIELD"
,
[
H5T_OPAQUE
]
"H5T_OPAQUE"
,
[
H5T_COMPOUND
]
"H5T_COMPOUND"
,
[
H5T_REFERENCE
]
"H5T_REFERENCE"
,
[
H5T_ENUM
]
"H5T_ENUM"
,
[
H5T_VLEN
]
"H5T_VLEN"
,
[
H5T_ARRAY
]
"H5T_ARRAY"
[
H5T_INTEGER
]
=
"H5T_INTEGER"
,
[
H5T_FLOAT
]
=
"H5T_FLOAT"
,
[
H5T_TIME
]
=
"H5T_TIME"
,
[
H5T_STRING
]
=
"H5T_STRING"
,
[
H5T_BITFIELD
]
=
"H5T_BITFIELD"
,
[
H5T_OPAQUE
]
=
"H5T_OPAQUE"
,
[
H5T_COMPOUND
]
=
"H5T_COMPOUND"
,
[
H5T_REFERENCE
]
=
"H5T_REFERENCE"
,
[
H5T_ENUM
]
=
"H5T_ENUM"
,
[
H5T_VLEN
]
=
"H5T_VLEN"
,
[
H5T_ARRAY
]
=
"H5T_ARRAY"
};
if
(
class_id
<
0
||
class_id
>=
H5T_NCLASSES
)
{
return
(
"[unknown]"
);
...
...
src/h5core/private/h5_maps.c
View file @
acc8b75a
...
...
@@ -62,7 +62,7 @@ grow_strlist (
ssize_t
h5priv_insert_strlist
(
h5_strlist_t
**
list
,
const
char
const
*
item
,
const
char
*
const
item
,
size_t
idx
)
{
H5_PRIV_API_ENTER
(
ssize_t
,
...
...
src/h5core/private/h5_maps.h
View file @
acc8b75a
...
...
@@ -160,7 +160,7 @@ h5_err_t
h5priv_free_strlist
(
h5_strlist_t
**
);
ssize_t
h5priv_insert_strlist
(
h5_strlist_t
**
,
const
char
const
*
,
size_t
);
h5priv_insert_strlist
(
h5_strlist_t
**
,
const
char
*
const
,
size_t
);
ssize_t
h5priv_find_strlist
(
h5_strlist_t
*
,
const
char
*
const
item
);
...
...
src/h5core/private/h5t_core.h
View file @
acc8b75a
...
...
@@ -136,7 +136,6 @@ h5tpriv_traverse_tv (
unsigned
int
*
i
)
{
assert
(
i
!=
NULL
);
if
(
*
i
<
0
)
i
=
0
;
if
(
*
i
>=
m
->
num_loc_vertices
[
m
->
num_loaded_levels
-
1
])
{
return
NULL
;
}
...
...
@@ -166,7 +165,6 @@ h5tpriv_traverse_td (
unsigned
int
*
i
)
{
assert
(
i
!=
NULL
);
if
(
*
i
<
0
)
i
=
0
;
h5t_td_entry_t
*
entry
=
h5priv_htraverse
(
&
m
->
adjacencies
.
td_hash
,
i
);
h5_loc_idlist_t
*
result
=
NULL
;
if
(
entry
)
{
...
...
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