Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
1b005047
Commit
1b005047
authored
1 year ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Suppress unaligned cast warning in decmp.c
parent
5616a131
No related branches found
No related tags found
1 merge request
!34
Update cmp_tool to version v0.13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/decompress/decmp.c
+3
-1
3 additions, 1 deletion
lib/decompress/decmp.c
with
3 additions
and
1 deletion
lib/decompress/decmp.c
+
3
−
1
View file @
1b005047
...
@@ -2188,6 +2188,7 @@ static long parse_cmp_collection(uint8_t *cmp_col, int n, struct cmp_cfg *cfg, i
...
@@ -2188,6 +2188,7 @@ static long parse_cmp_collection(uint8_t *cmp_col, int n, struct cmp_cfg *cfg, i
uint32_t
cmp_data_size
;
/* size of the compressed data in the collection (not including the header) */
uint32_t
cmp_data_size
;
/* size of the compressed data in the collection (not including the header) */
uint16_t
original_col_size
;
/* size of the decompressed collection data (not including the header) */
uint16_t
original_col_size
;
/* size of the decompressed collection data (not including the header) */
size_t
sample_size
;
size_t
sample_size
;
void
*
void_poiter
;
/* used to suppress unaligned cast warning */
/* get to the collection we want to decompress */
/* get to the collection we want to decompress */
for
(
i
=
0
;
i
<
n
;
i
++
)
{
for
(
i
=
0
;
i
<
n
;
i
++
)
{
...
@@ -2211,7 +2212,8 @@ static long parse_cmp_collection(uint8_t *cmp_col, int n, struct cmp_cfg *cfg, i
...
@@ -2211,7 +2212,8 @@ static long parse_cmp_collection(uint8_t *cmp_col, int n, struct cmp_cfg *cfg, i
else
else
*
coll_uncompressed
=
0
;
*
coll_uncompressed
=
0
;
cfg
->
icu_output_buf
=
(
void
*
)(
col_hdr
);
/* unaligned cast -> reading compressed data as uint8_t * */
void_poiter
=
(
void
*
)(
col_hdr
);
/* unaligned cast -> reading compressed data as uint8_t * */
cfg
->
icu_output_buf
=
void_poiter
;
cfg
->
buffer_length
=
cmp_data_size
+
COLLECTION_HDR_SIZE
;
cfg
->
buffer_length
=
cmp_data_size
+
COLLECTION_HDR_SIZE
;
cfg
->
data_type
=
convert_subservice_to_cmp_data_type
(
cmp_col_get_subservice
(
col_hdr
));
cfg
->
data_type
=
convert_subservice_to_cmp_data_type
(
cmp_col_get_subservice
(
col_hdr
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment