diff --git a/src/fields/clmul_1byte.cpp b/src/fields/clmul_1byte.cpp index 8826af96..1ce9324c 100644 --- a/src/fields/clmul_1byte.cpp +++ b/src/fields/clmul_1byte.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -82,7 +83,7 @@ typedef Field(implementation, 5); @@ -94,7 +95,7 @@ Sketch* ConstructClMul1Byte(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri1Byte(int bits, int implementation) { +Sketch* ConstructClMulTri1Byte(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_2 case 2: return new SketchImpl(implementation, 2); diff --git a/src/fields/clmul_2bytes.cpp b/src/fields/clmul_2bytes.cpp index 43930254..d99b1434 100644 --- a/src/fields/clmul_2bytes.cpp +++ b/src/fields/clmul_2bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -105,7 +106,7 @@ typedef Field(implementation, 10); @@ -129,7 +130,7 @@ Sketch* ConstructClMul2Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri2Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri2Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_9 case 9: return new SketchImpl(implementation, 9); diff --git a/src/fields/clmul_3bytes.cpp b/src/fields/clmul_3bytes.cpp index b473f66b..abe22ac6 100644 --- a/src/fields/clmul_3bytes.cpp +++ b/src/fields/clmul_3bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -114,7 +115,7 @@ typedef Field(implementation, 17); @@ -141,7 +142,7 @@ Sketch* ConstructClMul3Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri3Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri3Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_17 case 17: return new SketchImpl(implementation, 17); diff --git a/src/fields/clmul_4bytes.cpp b/src/fields/clmul_4bytes.cpp index c6597439..3bb1deae 100644 --- a/src/fields/clmul_4bytes.cpp +++ b/src/fields/clmul_4bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -112,7 +113,7 @@ typedef Field(implementation, 25); @@ -136,7 +137,7 @@ Sketch* ConstructClMul4Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri4Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri4Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_25 case 25: return new SketchImpl(implementation, 25); diff --git a/src/fields/clmul_5bytes.cpp b/src/fields/clmul_5bytes.cpp index 29c3fb10..3b0593e2 100644 --- a/src/fields/clmul_5bytes.cpp +++ b/src/fields/clmul_5bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -122,7 +123,7 @@ typedef Field(implementation, 33); @@ -152,7 +153,7 @@ Sketch* ConstructClMul5Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri5Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri5Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_33 case 33: return new SketchImpl(implementation, 33); diff --git a/src/fields/clmul_6bytes.cpp b/src/fields/clmul_6bytes.cpp index d0e71240..42893c8d 100644 --- a/src/fields/clmul_6bytes.cpp +++ b/src/fields/clmul_6bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -121,7 +122,7 @@ typedef Field(implementation, 41); @@ -148,7 +149,7 @@ Sketch* ConstructClMul6Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri6Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri6Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_41 case 41: return new SketchImpl(implementation, 41); diff --git a/src/fields/clmul_7bytes.cpp b/src/fields/clmul_7bytes.cpp index 2050dc32..0aff05af 100644 --- a/src/fields/clmul_7bytes.cpp +++ b/src/fields/clmul_7bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -121,7 +122,7 @@ typedef Field(implementation, 49); @@ -151,7 +152,7 @@ Sketch* ConstructClMul7Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri7Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri7Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_49 case 49: return new SketchImpl(implementation, 49); diff --git a/src/fields/clmul_8bytes.cpp b/src/fields/clmul_8bytes.cpp index 8dc1089f..b6192ced 100644 --- a/src/fields/clmul_8bytes.cpp +++ b/src/fields/clmul_8bytes.cpp @@ -14,6 +14,7 @@ #include "../int_utils.h" #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -129,7 +130,7 @@ typedef Field(implementation, 57); @@ -153,7 +154,7 @@ Sketch* ConstructClMul8Bytes(int bits, int implementation) { return nullptr; } -Sketch* ConstructClMulTri8Bytes(int bits, int implementation) { +Sketch* ConstructClMulTri8Bytes(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_57 case 57: return new SketchImpl(implementation, 57); diff --git a/src/fields/generic_1byte.cpp b/src/fields/generic_1byte.cpp index 5ce42dc5..a9b16764 100644 --- a/src/fields/generic_1byte.cpp +++ b/src/fields/generic_1byte.cpp @@ -13,6 +13,7 @@ #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -83,7 +84,7 @@ typedef Field #endif } -Sketch* ConstructGeneric1Byte(int bits, int implementation) +Sketch* ConstructGeneric1Byte(int bits, MAYBE_UNUSED int implementation) { switch (bits) { #ifdef ENABLE_FIELD_INT_2 diff --git a/src/fields/generic_2bytes.cpp b/src/fields/generic_2bytes.cpp index 12bf3110..1dd08398 100644 --- a/src/fields/generic_2bytes.cpp +++ b/src/fields/generic_2bytes.cpp @@ -13,6 +13,7 @@ #include "../lintrans.h" #include "../sketch_impl.h" +#include "../util.h" #endif @@ -92,7 +93,7 @@ typedef Field struct GFMulHelper; template struct GFMulHelper { - static inline constexpr I Run(const I& a, const I& b) { return I(0); } + static inline constexpr I Run(const I&, const I&) { return I(0); } }; template struct GFMulHelper {