mirror of https://gerrit.osmocom.org/asn1c
Only remove __attributes__ in Windows builds
This commit is contained in:
parent
afea72f494
commit
2aa10de1a8
|
@ -103,7 +103,12 @@ static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
|
|||
* Check stack against overflow, if limit is set.
|
||||
*/
|
||||
#define ASN__DEFAULT_STACK_MAX (30000)
|
||||
static int ASN__STACK_OVERFLOW_CHECK(asn_codec_ctx_t *ctx) {
|
||||
#ifdef _WIN32
|
||||
static int
|
||||
#else
|
||||
static int __attribute__((unused))
|
||||
#endif
|
||||
ASN__STACK_OVERFLOW_CHECK(asn_codec_ctx_t *ctx) {
|
||||
if(ctx && ctx->max_stack_size) {
|
||||
|
||||
/* ctx MUST be allocated on the stack */
|
||||
|
|
Loading…
Reference in New Issue