Commit 8ee1593e authored by Lev Walkin's avatar Lev Walkin
Browse files

portability

parent f2de1710
...@@ -67,7 +67,11 @@ extern void ASN_DEBUG_f(const char *fmt, ...); ...@@ -67,7 +67,11 @@ extern 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 */ #else /* EMIT_ASN_DEBUG */
#ifdef __GNUC__
#define ASN_DEBUG(fmt, args...) ((void)0) /* Emit a no-op operator */ #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 */
......
...@@ -461,7 +461,7 @@ SET_OF_print(asn1_TYPE_descriptor_t *td, const void *sptr, int ilevel, ...@@ -461,7 +461,7 @@ SET_OF_print(asn1_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|| cb(" ::= {\n", 7, app_key)) || cb(" ::= {\n", 7, app_key))
return -1; return -1;
(void *)list = sptr; (const void *)list = sptr;
for(i = 0; i < list->count; i++) { for(i = 0; i < list->count; i++) {
const void *memb_ptr = list->array[i]; const void *memb_ptr = list->array[i];
if(!memb_ptr) continue; if(!memb_ptr) continue;
...@@ -524,7 +524,7 @@ SET_OF_constraint(asn1_TYPE_descriptor_t *td, const void *sptr, ...@@ -524,7 +524,7 @@ SET_OF_constraint(asn1_TYPE_descriptor_t *td, const void *sptr,
return -1; return -1;
} }
(void *)list = sptr; (const void *)list = sptr;
for(i = 0; i < list->count; i++) { for(i = 0; i < list->count; i++) {
const void *memb_ptr = list->array[i]; const void *memb_ptr = list->array[i];
......
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