diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b018be..974e4d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -225,14 +225,10 @@ set (CMAKE_C_FLAGS              "${CMAKE_C_FLAGS} ${GPGME_C_FLAGS} \
                                 -std=c11 \
                                 -Wall \
                                 -Wextra \
-                                -Werror \
-                                -Wpedantic \
                                 -Wmissing-prototypes \
                                 -Wshadow \
                                 -Wsequence-point \
-                                -D_BSD_SOURCE \
                                 -D_ISOC11_SOURCE \
-                                -D_SVID_SOURCE \
                                 -D_DEFAULT_SOURCE")

 if (NOT SKIP_SRC)
