refer to defined macro
diff --git a/skeletons/asn_internal.h b/skeletons/asn_internal.h
index 9c94ca6..7c9325c 100644
--- a/skeletons/asn_internal.h
+++ b/skeletons/asn_internal.h
@@ -103,7 +103,7 @@
  * Check stack against overflow, if limit is set.
  */
 #define	ASN__DEFAULT_STACK_MAX	(30000)
-static int __attribute__((unused))
+static int GCC_NOTUSED
 ASN__STACK_OVERFLOW_CHECK(asn_codec_ctx_t *ctx) {
 	if(ctx && ctx->max_stack_size) {