regenerated
diff --git a/tests/119-per-strings-OK.asn1.-Pgen-PER b/tests/119-per-strings-OK.asn1.-Pgen-PER
index d21d818..a43b2f7 100644
--- a/tests/119-per-strings-OK.asn1.-Pgen-PER
+++ b/tests/119-per-strings-OK.asn1.-Pgen-PER
@@ -1061,118 +1061,118 @@
 
 /*** <<< CTDEFS [PDU] >>> ***/
 
-static asn_per_constraints_t asn_PER_memb_ia5_c_constr_5 = {
+static asn_per_constraints_t asn_PER_memb_ia5_c_constr_5 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_ia5_ce_constr_6 = {
+static asn_per_constraints_t asn_PER_memb_ia5_ce_constr_6 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_ia5_ir_constr_7 = {
+static asn_per_constraints_t asn_PER_memb_ia5_ir_constr_7 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_ia5_ir_7_v2c,	/* Value to PER code map */
 	asn_PER_MAP_ia5_ir_7_c2v	/* PER code to value map */
 };
-static asn_per_constraints_t asn_PER_memb_vs_c_constr_9 = {
+static asn_per_constraints_t asn_PER_memb_vs_c_constr_9 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_vs_ce_constr_10 = {
+static asn_per_constraints_t asn_PER_memb_vs_ce_constr_10 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_vs_ir_constr_11 = {
+static asn_per_constraints_t asn_PER_memb_vs_ir_constr_11 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_vs_ir_11_v2c,	/* Value to PER code map */
 	asn_PER_MAP_vs_ir_11_c2v	/* PER code to value map */
 };
-static asn_per_constraints_t asn_PER_memb_pr_c_constr_13 = {
+static asn_per_constraints_t asn_PER_memb_pr_c_constr_13 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_pr_ir_constr_14 = {
+static asn_per_constraints_t asn_PER_memb_pr_ir_constr_14 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_pr_ir_14_v2c,	/* Value to PER code map */
 	asn_PER_MAP_pr_ir_14_c2v	/* PER code to value map */
 };
-static asn_per_constraints_t asn_PER_memb_ns_c_constr_16 = {
+static asn_per_constraints_t asn_PER_memb_ns_c_constr_16 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  53,  57 }	/* (53..57) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_ns_ce_constr_17 = {
+static asn_per_constraints_t asn_PER_memb_ns_ce_constr_17 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_ns_ir_constr_18 = {
+static asn_per_constraints_t asn_PER_memb_ns_ir_constr_18 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  49,  57 }	/* (49..57) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_ns_ir_18_v2c,	/* Value to PER code map */
 	asn_PER_MAP_ns_ir_18_c2v	/* PER code to value map */
 };
-static asn_per_constraints_t asn_PER_memb_ut_c_constr_19 = {
+static asn_per_constraints_t asn_PER_memb_ut_c_constr_19 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_ut_ce_constr_20 = {
+static asn_per_constraints_t asn_PER_memb_ut_ce_constr_20 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_ut_ir_constr_21 = {
+static asn_per_constraints_t asn_PER_memb_ut_ir_constr_21 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_bm_c_constr_23 = {
+static asn_per_constraints_t asn_PER_memb_bm_c_constr_23 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_bm_cs_constr_24 = {
+static asn_per_constraints_t asn_PER_memb_bm_cs_constr_24 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 16,  16,  0,  65533 }	/* (0..65533) */,
 	{ APC_CONSTRAINED,	 0,  0,  6,  6 }	/* (SIZE(6..6)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_bm_ce_constr_25 = {
+static asn_per_constraints_t asn_PER_memb_bm_ce_constr_25 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_bm_ir_constr_26 = {
+static asn_per_constraints_t asn_PER_memb_bm_ir_constr_26 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_bm_ir_26_v2c,	/* Value to PER code map */
 	asn_PER_MAP_bm_ir_26_c2v	/* PER code to value map */
 };
-static asn_per_constraints_t asn_PER_memb_us_c_constr_28 = {
+static asn_per_constraints_t asn_PER_memb_us_c_constr_28 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_us_cs_constr_29 = {
+static asn_per_constraints_t asn_PER_memb_us_cs_constr_29 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32,  32,  0,  2147483647 }	/* (0..4294967295) */,
 	{ APC_CONSTRAINED,	 0,  0,  6,  6 }	/* (SIZE(6..6)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_us_ce_constr_30 = {
+static asn_per_constraints_t asn_PER_memb_us_ce_constr_30 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	32, 32, 0, 2147483647 } /* special case 1 */
 	,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
 };
-static asn_per_constraints_t asn_PER_memb_us_ir_constr_31 = {
+static asn_per_constraints_t asn_PER_memb_us_ir_constr_31 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	asn_PER_MAP_us_ir_31_v2c,	/* Value to PER code map */
diff --git a/tests/126-per-extensions-OK.asn1.-Pgen-PER b/tests/126-per-extensions-OK.asn1.-Pgen-PER
index 2bb515f..5b234be 100644
--- a/tests/126-per-extensions-OK.asn1.-Pgen-PER
+++ b/tests/126-per-extensions-OK.asn1.-Pgen-PER
@@ -259,7 +259,7 @@
 
 /*** <<< CTDEFS [PDU-2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_PDU_2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_PDU_2_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }	/* (0..0,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
diff --git a/tests/127-per-long-OK.asn1.-Pgen-PER b/tests/127-per-long-OK.asn1.-Pgen-PER
index ab54195..696b83b 100644
--- a/tests/127-per-long-OK.asn1.-Pgen-PER
+++ b/tests/127-per-long-OK.asn1.-Pgen-PER
@@ -319,32 +319,32 @@
 
 /*** <<< CTDEFS [T] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_unsigned32_constr_4 = {
+static asn_per_constraints_t asn_PER_type_unsigned32_constr_4 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  0,  4294967295 }	/* (0..4294967295) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_type_unsplit32_constr_5 = {
+static asn_per_constraints_t asn_PER_type_unsplit32_constr_5 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  5,  4294967290 }	/* (5..4294967290) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_small32range_constr_2 = {
+static asn_per_constraints_t asn_PER_memb_small32range_constr_2 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1, -2000000000,  2000000000 }	/* (-2000000000..2000000000) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_full32range_constr_3 = {
+static asn_per_constraints_t asn_PER_memb_full32range_constr_3 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1, (-2147483647L - 1),  2147483647 }	/* (-2147483648..2147483647) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_unsigned32_constr_4 = {
+static asn_per_constraints_t asn_PER_memb_unsigned32_constr_4 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  0,  4294967295 }	/* (0..4294967295) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_unsplit32_constr_5 = {
+static asn_per_constraints_t asn_PER_memb_unsplit32_constr_5 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  5,  4294967290 }	/* (5..4294967290) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
diff --git a/tests/50-constraint-OK.asn1.-Pgen-PER b/tests/50-constraint-OK.asn1.-Pgen-PER
index 1764553..e836816 100644
--- a/tests/50-constraint-OK.asn1.-Pgen-PER
+++ b/tests/50-constraint-OK.asn1.-Pgen-PER
@@ -272,7 +272,7 @@
 
 /*** <<< CTDEFS [Int2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Int2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Int2_constr_1 GCC_NOTUSED = {
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (0..MAX) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -439,7 +439,7 @@
 
 /*** <<< CTDEFS [Int3] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Int3_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Int3_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 4,  4,  0,  10 }	/* (0..10) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -606,7 +606,7 @@
 
 /*** <<< CTDEFS [Int4] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Int4_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Int4_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  1,  10 }	/* (1..10,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -773,7 +773,7 @@
 
 /*** <<< CTDEFS [Int5] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Int5_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Int5_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 0,  0,  5,  5 }	/* (5..5) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -940,7 +940,7 @@
 
 /*** <<< CTDEFS [ExtensibleExtensions] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_ExtensibleExtensions_constr_1 = {
+static asn_per_constraints_t asn_PER_type_ExtensibleExtensions_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  8,  8,  1,  256 }	/* (1..256,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1267,7 +1267,7 @@
 
 /*** <<< CTDEFS [Str2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Str2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Str2_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 7,  7,  0,  127 }	/* (0..127) */,
 	{ APC_CONSTRAINED,	 5,  5,  0,  30 }	/* (SIZE(0..30)) */,
 	0, 0	/* No PER character map necessary */
@@ -1476,7 +1476,7 @@
 
 /*** <<< CTDEFS [Str3] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Str3_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Str3_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  102 }	/* (65..102) */,
 	{ APC_CONSTRAINED,	 5,  5,  10,  27 }	/* (SIZE(10..27)) */,
 	asn_PER_MAP_Str3_1_v2c,	/* Value to PER code map */
@@ -1659,7 +1659,7 @@
 
 /*** <<< CTDEFS [Str4] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Str4_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Str4_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 7,  7,  0,  127 }	/* (0..127) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -1841,7 +1841,7 @@
 
 /*** <<< CTDEFS [PER-Visible] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_PER_Visible_constr_1 = {
+static asn_per_constraints_t asn_PER_type_PER_Visible_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  70 }	/* (65..70) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -2023,7 +2023,7 @@
 
 /*** <<< CTDEFS [PER-Visible-2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_PER_Visible_2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_PER_Visible_2_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  69,  70 }	/* (69..70) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -2205,7 +2205,7 @@
 
 /*** <<< CTDEFS [Not-PER-Visible-1] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Not_PER_Visible_1_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Not_PER_Visible_1_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  70 }	/* (65..70) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -2387,7 +2387,7 @@
 
 /*** <<< CTDEFS [Not-PER-Visible-2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Not_PER_Visible_2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Not_PER_Visible_2_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -2569,7 +2569,7 @@
 
 /*** <<< CTDEFS [Not-PER-Visible-3] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Not_PER_Visible_3_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Not_PER_Visible_3_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -2754,7 +2754,7 @@
 
 /*** <<< CTDEFS [SIZE-but-not-FROM] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_SIZE_but_not_FROM_constr_1 = {
+static asn_per_constraints_t asn_PER_type_SIZE_but_not_FROM_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_CONSTRAINED,	 2,  2,  1,  4 }	/* (SIZE(1..4)) */,
 	0, 0	/* No PER character map necessary */
@@ -2939,7 +2939,7 @@
 
 /*** <<< CTDEFS [SIZE-and-FROM] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_SIZE_and_FROM_constr_1 = {
+static asn_per_constraints_t asn_PER_type_SIZE_and_FROM_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 2,  2,  65,  68 }	/* (65..68) */,
 	{ APC_CONSTRAINED,	 2,  2,  1,  4 }	/* (SIZE(1..4)) */,
 	0, 0	/* No PER character map necessary */
@@ -3121,7 +3121,7 @@
 
 /*** <<< CTDEFS [Neither-SIZE-nor-FROM] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Neither_SIZE_nor_FROM_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Neither_SIZE_nor_FROM_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 3,  3,  65,  70 }	/* (65..70) */,
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
 	0, 0	/* No PER character map necessary */
@@ -3297,7 +3297,7 @@
 
 /*** <<< CTDEFS [Utf8-4] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Utf8_4_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Utf8_4_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -3501,7 +3501,7 @@
 
 /*** <<< CTDEFS [Utf8-3] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Utf8_3_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Utf8_3_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -3675,7 +3675,7 @@
 
 /*** <<< CTDEFS [Utf8-2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Utf8_2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Utf8_2_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -4262,22 +4262,22 @@
 
 /*** <<< CTDEFS [Sequence] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_enum_c_constr_6 = {
+static asn_per_constraints_t asn_PER_type_enum_c_constr_6 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }	/* (0..1,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_int1_c_constr_2 = {
+static asn_per_constraints_t asn_PER_memb_int1_c_constr_2 GCC_NOTUSED = {
 	{ APC_SEMI_CONSTRAINED,	-1, -1, -2,  0 }	/* (-2..MAX) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_int4_c_constr_4 = {
+static asn_per_constraints_t asn_PER_memb_int4_c_constr_4 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 2,  2,  5,  7 }	/* (5..7) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_memb_int5_c_constr_13 = {
+static asn_per_constraints_t asn_PER_memb_int5_c_constr_13 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 0,  0,  5,  5 }	/* (5..5) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -4512,7 +4512,7 @@
 
 /*** <<< CTDEFS [SequenceOf] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_SequenceOf_constr_1 = {
+static asn_per_constraints_t asn_PER_type_SequenceOf_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_CONSTRAINED,	 1,  1,  1,  2 }	/* (SIZE(1..2)) */,
 	0, 0	/* No PER value map */
@@ -4686,7 +4686,7 @@
 
 /*** <<< CTDEFS [Enum0] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Enum0_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Enum0_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -4877,7 +4877,7 @@
 
 /*** <<< CTDEFS [Enum1] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Enum1_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Enum1_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -5108,7 +5108,7 @@
 
 /*** <<< CTDEFS [Identifier] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Identifier_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Identifier_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 6,  6,  36,  122 }	/* (36..122) */,
 	{ APC_CONSTRAINED,	 5,  5,  1,  32 }	/* (SIZE(1..32)) */,
 	asn_PER_MAP_Identifier_1_v2c,	/* Value to PER code map */
diff --git a/tests/90-cond-int-type-OK.asn1.-Pgen-PER b/tests/90-cond-int-type-OK.asn1.-Pgen-PER
index 01b0abc..ac1de2f 100644
--- a/tests/90-cond-int-type-OK.asn1.-Pgen-PER
+++ b/tests/90-cond-int-type-OK.asn1.-Pgen-PER
@@ -268,7 +268,7 @@
 
 /*** <<< CTDEFS [CN-IntegerMinMax] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_CN_IntegerMinMax_constr_1 = {
+static asn_per_constraints_t asn_PER_type_CN_IntegerMinMax_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -435,7 +435,7 @@
 
 /*** <<< CTDEFS [CN-IntegerMinLow] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_CN_IntegerMinLow_constr_1 = {
+static asn_per_constraints_t asn_PER_type_CN_IntegerMinLow_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 }	/* (MIN..1) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -608,7 +608,7 @@
 
 /*** <<< CTDEFS [NO-IntegerMinHigh] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerMinHigh_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerMinHigh_constr_1 GCC_NOTUSED = {
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 }	/* (MIN..3000000000) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -775,7 +775,7 @@
 
 /*** <<< CTDEFS [NO-IntegerLowHigh] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  1,  3000000000 }	/* (1..3000000000) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -947,7 +947,7 @@
 
 /*** <<< CTDEFS [CN-IntegerLowMax] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_CN_IntegerLowMax_constr_1 = {
+static asn_per_constraints_t asn_PER_type_CN_IntegerLowMax_constr_1 GCC_NOTUSED = {
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  1,  0 }	/* (1..MAX) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1120,7 +1120,7 @@
 
 /*** <<< CTDEFS [NO-IntegerHighMax] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerHighMax_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerHighMax_constr_1 GCC_NOTUSED = {
 	{ APC_SEMI_CONSTRAINED,	-1, -1,  3000000000,  0 }	/* (3000000000..MAX) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1293,7 +1293,7 @@
 
 /*** <<< CTDEFS [NO-IntegerLowestMax] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerLowestMax_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerLowestMax_constr_1 GCC_NOTUSED = {
 	{ APC_SEMI_CONSTRAINED,	-1, -1, -3000000000,  0 }	/* (-3000000000..MAX) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1460,7 +1460,7 @@
 
 /*** <<< CTDEFS [NO-IntegerOutRange] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1, -1,  3000000000,  3000000001 }	/* (3000000000..3000000001) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1632,7 +1632,7 @@
 
 /*** <<< CTDEFS [NO-IntegerOutValue] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 0, -1,  3000000000,  3000000000 }	/* (3000000000..3000000000) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1804,7 +1804,7 @@
 
 /*** <<< CTDEFS [OK-IntegerInRange1] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_OK_IntegerInRange1_constr_1 = {
+static asn_per_constraints_t asn_PER_type_OK_IntegerInRange1_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 8,  8, -100,  100 }	/* (-100..100) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -1971,7 +1971,7 @@
 
 /*** <<< CTDEFS [OK-IntegerInRange2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_OK_IntegerInRange2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_OK_IntegerInRange2_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 8,  8, -100,  100 }	/* (-100..100) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -2138,7 +2138,7 @@
 
 /*** <<< CTDEFS [OK-IntegerInRange3] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_OK_IntegerInRange3_constr_1 = {
+static asn_per_constraints_t asn_PER_type_OK_IntegerInRange3_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1, (-2147483647L - 1),  2147483647 }	/* (-2147483648..2147483647) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -2305,7 +2305,7 @@
 
 /*** <<< CTDEFS [OK-IntegerInRange4] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_OK_IntegerInRange4_constr_1 = {
+static asn_per_constraints_t asn_PER_type_OK_IntegerInRange4_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1, (-2147483647L - 1),  2147483647 }	/* (-2147483648..2147483647) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -2472,7 +2472,7 @@
 
 /*** <<< CTDEFS [OK-IntegerInRange5] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_OK_IntegerInRange5_constr_1 = {
+static asn_per_constraints_t asn_PER_type_OK_IntegerInRange5_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  32, -1, (-2147483647L - 1),  2147483647 }	/* (-2147483648..2147483647,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -2630,7 +2630,7 @@
 
 /*** <<< CTDEFS [NO-IntegerInRange6] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 = {
+static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 32, -1,  0,  4294967295 }	/* (0..4294967295) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
diff --git a/tests/95-choice-per-order-OK.asn1.-Pgen-PER b/tests/95-choice-per-order-OK.asn1.-Pgen-PER
index f90a813..d5d5045 100644
--- a/tests/95-choice-per-order-OK.asn1.-Pgen-PER
+++ b/tests/95-choice-per-order-OK.asn1.-Pgen-PER
@@ -58,12 +58,12 @@
 
 /*** <<< CTDEFS [Choice] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_ch_constr_4 = {
+static asn_per_constraints_t asn_PER_type_ch_constr_4 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
 };
-static asn_per_constraints_t asn_PER_type_Choice_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Choice_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  2 }	/* (0..2,...) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */
@@ -243,7 +243,7 @@
 
 /*** <<< CTDEFS [Choice2] >>> ***/
 
-static asn_per_constraints_t asn_PER_type_Choice2_constr_1 = {
+static asn_per_constraints_t asn_PER_type_Choice2_constr_1 GCC_NOTUSED = {
 	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
 	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
 	0, 0	/* No PER value map */