]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc
3983-2.cc: Avoid -Wall warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 6_containers / hash / operators / size_t.cc
index 067a9f51da0c0ccb697c456621943589bfe9c3b8..7b45816da5087fd53c9862363d7dda0b4d0e1493 100644 (file)
@@ -1,6 +1,6 @@
 // 2007-08-20  <benjamin@redhat.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -34,7 +34,8 @@ template<typename T>
     typedef std::tr1::hash<value_type>         hash_type;
     using std::size_t;
 
-    value_type v; // default initialized is fine, same value all that matters.
+    value_type v = T(); // default initialized is fine, same value all
+                        // that matters.
     hash_type h1;
     size_t r1 = size_t(h1(v));