fixup! libyang CHANGE split type base and type flags
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eea78cb..02ec826 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,11 +62,11 @@
     if (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.0)
         message(FATAL_ERROR "Clang version must be at least 3.0!")
     endif()
-    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x")
+    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x __attribute__((__unused__))")
     set(COMPILER_PACKED_ATTR "__attribute__((__packed__))")
 else()
     message(WARNING "You are using an unknown compiler, it must support C11 standard \"_Generic\" statement.")
-    set(COMPILER_UNUSED_ATTR "x")
+    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x")
     set(COMPILER_PACKED_ATTR "")
 endif()