aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2013-03-25 18:51:51 -0700
committerLev Walkin <vlm@lionet.info>2013-03-25 18:51:51 -0700
commit0ff71290403f4212a31a3dda25bee92a4b25c9ec (patch)
tree2df67a382ff74c13318f3e3395b1d3f55e55e636
parente14480fa0b9ff7fb67b90bcbaef7bf156c0ea433 (diff)
remove warnings
-rw-r--r--asn1c/asn1c.c3
-rw-r--r--skeletons/INTEGER.c2
-rw-r--r--skeletons/asn_codecs_prim.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c
index 4c565e4a..330ffa22 100644
--- a/asn1c/asn1c.c
+++ b/asn1c/asn1c.c
@@ -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"
diff --git a/skeletons/INTEGER.c b/skeletons/INTEGER.c
index 56d02b49..6fa10e86 100644
--- a/skeletons/INTEGER.c
+++ b/skeletons/INTEGER.c
@@ -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;
diff --git a/skeletons/asn_codecs_prim.c b/skeletons/asn_codecs_prim.c
index bd548109..8e604a49 100644
--- a/skeletons/asn_codecs_prim.c
+++ b/skeletons/asn_codecs_prim.c
@@ -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.