tests MAINTENANCE remove duplicate compiler attributes

... because they are handled in compat.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c16383f..36469b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,17 +66,6 @@
 set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
 set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
 
-if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
-    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x __attribute__((__unused__))")
-    set(COMPILER_PACKED_ATTR "__attribute__((__packed__))")
-elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
-    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x __attribute__((__unused__))")
-    set(COMPILER_PACKED_ATTR "__attribute__((__packed__))")
-else()
-    set(COMPILER_UNUSED_ATTR "UNUSED_ ## x")
-    set(COMPILER_PACKED_ATTR "")
-endif()
-
 set(CMAKE_C_FLAGS                "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-missing-field-initializers -std=c99")
 set(CMAKE_C_FLAGS_DEBUG          "-g3 -O0")
 set(CMAKE_C_FLAGS_ABICHECK       "-g -Og")
diff --git a/tests/tests_config.h.in b/tests/tests_config.h.in
index 5943c07..125b856 100644
--- a/tests/tests_config.h.in
+++ b/tests/tests_config.h.in
@@ -1,9 +1,9 @@
 /**
- * @file config.h
+ * @file tests_config.h
  * @author Radek Krejci <rkrejci@cesnet.cz>
  * @brief cmocka tests configuration header.
  *
- * Copyright (c) 2015 - 2098 CESNET, z.s.p.o.
+ * Copyright (c) 2015 - 2021 CESNET, z.s.p.o.
  *
  * This source code is licensed under BSD 3-Clause License (the "License").
  * You may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
 #ifndef LYTEST_CONFIG_H_
 #define LYTEST_CONFIG_H_
 
-#define UNUSED(x) @COMPILER_UNUSED_ATTR@
-
 #define TESTS_SRC "@CMAKE_CURRENT_SOURCE_DIR@"
 #define TESTS_BIN "@CMAKE_CURRENT_BINARY_DIR@"