Commit fdb25925 authored by Lev Walkin's avatar Lev Walkin

tried -pedantic

parent f109aa11
...@@ -309,7 +309,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun ...@@ -309,7 +309,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
ST_SKIPSPACE, ST_SKIPSPACE,
ST_WAITDIGITS, ST_WAITDIGITS,
ST_DIGITS, ST_DIGITS,
ST_EXTRASTUFF, ST_EXTRASTUFF
} state = ST_SKIPSPACE; } state = ST_SKIPSPACE;
/* /*
......
...@@ -659,7 +659,7 @@ OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ssize_t oid_txt_length, ...@@ -659,7 +659,7 @@ OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ssize_t oid_txt_length,
enum { enum {
ST_SKIPSPACE, ST_SKIPSPACE,
ST_WAITDIGITS, /* Next character is expected to be a digit */ ST_WAITDIGITS, /* Next character is expected to be a digit */
ST_DIGITS, ST_DIGITS
} state = ST_SKIPSPACE; } state = ST_SKIPSPACE;
if(!oid_text || oid_txt_length < -1 || (arcs_slots && !arcs)) { if(!oid_text || oid_txt_length < -1 || (arcs_slots && !arcs)) {
......
...@@ -101,7 +101,7 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { ...@@ -101,7 +101,7 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
typedef enum OS_type { typedef enum OS_type {
_TT_GENERIC = 0, /* Just a random OCTET STRING */ _TT_GENERIC = 0, /* Just a random OCTET STRING */
_TT_BIT_STRING = 1, /* BIT STRING type, a special case */ _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; } OS_type_e;
/* /*
......
...@@ -32,7 +32,7 @@ static int opt_stack; /* -s */ ...@@ -32,7 +32,7 @@ static int opt_stack; /* -s */
static enum output_method { static enum output_method {
OUT_NONE, /* No pretty-printing */ OUT_NONE, /* No pretty-printing */
OUT_PRINT, /* -p flag */ OUT_PRINT, /* -p flag */
OUT_XML, /* -x flag */ OUT_XML /* -x flag */
} opt_ometh; /* -p or -x */ } opt_ometh; /* -p or -x */
#define DEBUG(fmt, args...) do { \ #define DEBUG(fmt, args...) do { \
......
...@@ -39,11 +39,7 @@ void ASN_DEBUG_f(const char *fmt, ...); ...@@ -39,11 +39,7 @@ void ASN_DEBUG_f(const char *fmt, ...);
#define ASN_DEBUG ASN_DEBUG_f #define ASN_DEBUG ASN_DEBUG_f
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#else /* EMIT_ASN_DEBUG != 1 */ #else /* EMIT_ASN_DEBUG != 1 */
#ifdef __GNUC__ static inline void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
#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__ */
#endif /* EMIT_ASN_DEBUG */ #endif /* EMIT_ASN_DEBUG */
#endif /* ASN_DEBUG */ #endif /* ASN_DEBUG */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment