From fdb25925db839e9dc2718cf0425cb99358339fd0 Mon Sep 17 00:00:00 2001 From: Lev Walkin <vlm@lionet.info> Date: Thu, 21 Jul 2005 09:32:49 +0000 Subject: [PATCH] tried -pedantic --- skeletons/INTEGER.c | 2 +- skeletons/OBJECT_IDENTIFIER.c | 2 +- skeletons/OCTET_STRING.c | 2 +- skeletons/asn-decoder-template.c | 2 +- skeletons/asn_internal.h | 6 +----- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/skeletons/INTEGER.c b/skeletons/INTEGER.c index e4e52d41..b4770560 100644 --- a/skeletons/INTEGER.c +++ b/skeletons/INTEGER.c @@ -309,7 +309,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun ST_SKIPSPACE, ST_WAITDIGITS, ST_DIGITS, - ST_EXTRASTUFF, + ST_EXTRASTUFF } state = ST_SKIPSPACE; /* diff --git a/skeletons/OBJECT_IDENTIFIER.c b/skeletons/OBJECT_IDENTIFIER.c index 0c16bfdd..cb9ff575 100644 --- a/skeletons/OBJECT_IDENTIFIER.c +++ b/skeletons/OBJECT_IDENTIFIER.c @@ -659,7 +659,7 @@ OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ssize_t oid_txt_length, enum { ST_SKIPSPACE, ST_WAITDIGITS, /* Next character is expected to be a digit */ - ST_DIGITS, + ST_DIGITS } state = ST_SKIPSPACE; if(!oid_text || oid_txt_length < -1 || (arcs_slots && !arcs)) { diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index 58184559..b43c18fe 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -101,7 +101,7 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { typedef enum OS_type { _TT_GENERIC = 0, /* Just a random OCTET STRING */ _TT_BIT_STRING = 1, /* BIT STRING type, a special case */ - _TT_ANY = 2, /* ANY type, a special case too */ + _TT_ANY = 2 /* ANY type, a special case too */ } OS_type_e; /* diff --git a/skeletons/asn-decoder-template.c b/skeletons/asn-decoder-template.c index 5116529d..16a6f4ae 100644 --- a/skeletons/asn-decoder-template.c +++ b/skeletons/asn-decoder-template.c @@ -32,7 +32,7 @@ static int opt_stack; /* -s */ static enum output_method { OUT_NONE, /* No pretty-printing */ OUT_PRINT, /* -p flag */ - OUT_XML, /* -x flag */ + OUT_XML /* -x flag */ } opt_ometh; /* -p or -x */ #define DEBUG(fmt, args...) do { \ diff --git a/skeletons/asn_internal.h b/skeletons/asn_internal.h index 22011efa..84d692ac 100644 --- a/skeletons/asn_internal.h +++ b/skeletons/asn_internal.h @@ -39,11 +39,7 @@ void ASN_DEBUG_f(const char *fmt, ...); #define ASN_DEBUG ASN_DEBUG_f #endif /* __GNUC__ */ #else /* EMIT_ASN_DEBUG != 1 */ -#ifdef __GNUC__ -#define ASN_DEBUG(fmt, args...) ((void)0) /* Emit a no-op operator */ -#else /* __GNUC__ */ -static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }; -#endif /* __GNUC__ */ +static inline void ASN_DEBUG(const char *fmt, ...) { (void)fmt; } #endif /* EMIT_ASN_DEBUG */ #endif /* ASN_DEBUG */ -- GitLab