diff --git a/cmake/modules/CheckCXX11Features.cmake b/cmake/modules/CheckCXX11Features.cmake
index 7aa05e646630739d1f0bfd8647b6bebf6fa6a7fe..7a564304cfb0344e73a322d98071e8a39cefda4e 100644
--- a/cmake/modules/CheckCXX11Features.cmake
+++ b/cmake/modules/CheckCXX11Features.cmake
@@ -157,7 +157,7 @@ check_cxx_source_compiles("
 
    void foo() DEP;
 
-   void foo() {};
+   void foo() {}
 
    int main(void)
    {
@@ -189,7 +189,7 @@ check_cxx_source_compiles("
 
    void foo() DEP;
 
-   void foo() {};
+   void foo() {}
 
    int main(void)
    {
diff --git a/m4/dune_deprecated.m4 b/m4/dune_deprecated.m4
index 49d0edab7e1615462fb02cf5a2b61bf2e766670c..ff196167297f4328ff590397896826f0d6055bd5 100644
--- a/m4/dune_deprecated.m4
+++ b/m4/dune_deprecated.m4
@@ -14,7 +14,7 @@ AC_DEFUN([DUNE_CHECKDEPRECATED],[
                     template <class T>
                     class t_peng { t_peng() {}; } DEP;
                     void foo() DEP;
-                    void foo() {};
+                    void foo() {}
                   ]],
                   [])],
              dune_cv_attribute_deprecated="yes",
@@ -34,7 +34,7 @@ AC_DEFUN([DUNE_CHECKDEPRECATED],[
                     template <class T>
                     class t_peng { t_peng() {}; } DEP;
                     void foo() DEP;
-                    void foo() {};
+                    void foo() {}
                   ]],
                   [])],
             dune_cv_attribute_deprecated_message="yes",