diff --git a/kwsysPlatformCxxTests.cxx b/kwsysPlatformCxxTests.cxx
index 8a45eddddb646edab24b62e89d24eb6c5874a8a9..fa06a5000f1ffb23b44cb1ecd79d41808f7432f5 100644
--- a/kwsysPlatformCxxTests.cxx
+++ b/kwsysPlatformCxxTests.cxx
@@ -155,7 +155,7 @@ template <class Alloc>
 void f(const Alloc&)
 {
   typedef typename Alloc::size_type alloc_size_type;
-};
+}
 int main()
 {
   f(kwsys_stl::allocator<char>());
@@ -175,7 +175,7 @@ template <class T, class Alloc>
 void f(const T&, const Alloc&)
 {
   typedef typename Alloc::template rebind<T>::other alloc_type;
-};
+}
 int main()
 {
   f(0, kwsys_stl::allocator<char>());
@@ -188,7 +188,7 @@ int main()
 void f(kwsys_stl::allocator<char> const& a)
 {
   a.max_size(sizeof(int));
-};
+}
 int main()
 {
   f(kwsys_stl::allocator<char>());
@@ -201,7 +201,7 @@ int main()
 void f(kwsys_stl::vector<int> const& v1)
 {
   kwsys_stl::vector<int>(1, 1, v1.get_allocator());
-};
+}
 int main()
 {
   f(kwsys_stl::vector<int>());