Browse Source

Fixed compiler warning.

Branimir Karadžić 10 years ago
parent
commit
ca849f5add
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/unordered_map_nonpod.cpp

+ 3 - 2
tests/unordered_map_nonpod.cpp

@@ -29,10 +29,11 @@
 #include <tinystl/allocator.h>
 #include <tinystl/allocator.h>
 #include <tinystl/unordered_map.h>
 #include <tinystl/unordered_map.h>
 
 
+struct Foo { int bar; };
+
 TEST(uomap_nonpod_compiles) {
 TEST(uomap_nonpod_compiles) {
-	struct Foo { int bar; };
 
 
 	// verify this compiles
 	// verify this compiles
 	typedef tinystl::unordered_map<int, Foo> map;
 	typedef tinystl::unordered_map<int, Foo> map;
 	map m;
 	map m;
-}
+}