Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
asn1c
Commits
0ff71290
Commit
0ff71290
authored
12 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
remove warnings
parent
e14480fa
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
asn1c/asn1c.c
+1
-2
1 addition, 2 deletions
asn1c/asn1c.c
skeletons/INTEGER.c
+1
-1
1 addition, 1 deletion
skeletons/INTEGER.c
skeletons/asn_codecs_prim.c
+1
-1
1 addition, 1 deletion
skeletons/asn_codecs_prim.c
with
3 additions
and
4 deletions
asn1c/asn1c.c
+
1
−
2
View file @
0ff71290
...
...
@@ -101,7 +101,7 @@ main(int ac, char **av) {
asn1_compiler_flags
|=
A1C_INCLUDES_QUOTED
;
}
else
if
(
strcmp
(
optarg
,
"unnamed-unions"
)
==
0
)
{
asn1_compiler_flags
|=
A1C_UNNAMED_UNIONS
;
}
else
if
(
strcmp
(
optarg
,
"skeletons-copy"
)
==
0
)
{
}
else
if
(
strcmp
(
optarg
,
"skeletons-copy"
)
==
0
)
{
// DEPRECATED
asn1_compiler_flags
|=
A1C_SKELETONS_COPY
;
}
else
{
fprintf
(
stderr
,
"-f%s: Invalid argument
\n
"
,
optarg
);
...
...
@@ -462,7 +462,6 @@ usage(const char *av0) {
" -fno-constraints Do not generate constraint checking code
\n
"
" -fno-include-deps Do not generate courtesy #includes for dependencies
\n
"
" -funnamed-unions Enable unnamed unions in structures
\n
"
" -fskeletons-copy Force copying the support files
\n
"
"
\n
"
" -gen-PER Generate PER support code
\n
"
...
...
This diff is collapsed.
Click to expand it.
skeletons/INTEGER.c
+
1
−
1
View file @
0ff71290
...
...
@@ -325,7 +325,7 @@ static enum xer_pbd_rval
INTEGER__xer_body_decode
(
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
const
void
*
chunk_buf
,
size_t
chunk_size
)
{
INTEGER_t
*
st
=
(
INTEGER_t
*
)
sptr
;
long
dec_value
;
long
hex_value
;
long
hex_value
=
0
;
const
char
*
lp
;
const
char
*
lstart
=
(
const
char
*
)
chunk_buf
;
const
char
*
lstop
=
lstart
+
chunk_size
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_codecs_prim.c
+
1
−
1
View file @
0ff71290
...
...
@@ -15,7 +15,7 @@ ber_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
void
**
sptr
,
const
void
*
buf_ptr
,
size_t
size
,
int
tag_mode
)
{
ASN__PRIMITIVE_TYPE_t
*
st
=
(
ASN__PRIMITIVE_TYPE_t
*
)
*
sptr
;
asn_dec_rval_t
rval
;
ber_tlv_len_t
length
;
ber_tlv_len_t
length
=
0
;
// =0 to avoid [incorrect] warning.
/*
* If the structure is not there, allocate it.
...
...
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