fixed the windows build files
authorWouter van Oortmerssen <aardappel@gmail.com>
Thu, 14 May 2015 00:26:20 +0000 (17:26 -0700)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 14 May 2015 00:26:20 +0000 (17:26 -0700)
build/VS2010/flatc.vcxproj
src/idl_gen_cpp.cpp

index faa5c40..84200a5 100755 (executable)
     <ClCompile Include="..\..\src\idl_gen_go.cpp">
       <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Level4</WarningLevel>
     </ClCompile>
+    <ClCompile Include="..\..\src\idl_gen_python.cpp" />
     <ClCompile Include="..\..\src\idl_parser.cpp" />
     <ClCompile Include="..\..\src\idl_gen_cpp.cpp" />
     <ClCompile Include="..\..\src\idl_gen_text.cpp" />
index 40493ff..23e3db4 100644 (file)
@@ -275,6 +275,7 @@ static void GenTable(const Parser &parser, StructDef &struct_def,
             nested->constant);
         auto nested_root = parser.structs_.Lookup(qualified_name);
         assert(nested_root);  // Guaranteed to exist by parser.
+        (void)nested_root;
         std::string cpp_qualified_name = TranslateNameSpace(qualified_name);
 
         code += "  const " + cpp_qualified_name + " *" + field.name;