Disable -Wunused-result in programs and tests
diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt
index 4cdae78..0bbc294 100644
--- a/programs/CMakeLists.txt
+++ b/programs/CMakeLists.txt
@@ -1,3 +1,7 @@
+if(CMAKE_COMPILER_IS_GNUCC)
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
+endif(CMAKE_COMPILER_IS_GNUCC)
+
 add_subdirectory(aes)
 add_subdirectory(hash)
 add_subdirectory(pkey)