]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/props.cxx
Patch from Tony Peden to remove unused variable and eliminate compiler
[simgear.git] / simgear / misc / props.cxx
index d9a861e484a51362e919ece7b6e9a48326cf64b2..77daddb242a8959e7d5d50a5a3f650dbac871dcc 100644 (file)
@@ -19,10 +19,13 @@ using std::sort;
 
 #include <simgear/compiler.h>
 #include <simgear/debug/logstream.hxx>
+
 SG_USING_STD(sort);
 
 #endif
 
+#include <algorithm>
+#include <stdio.h>
 #include <string.h>
 
 
@@ -219,7 +222,6 @@ copy_string (const char * s)
                                // For some reason, strnlen and
                                // strncpy cause all kinds of crashes.
   string str = s;
-  size_t len = strlen(s);
   char * copy = new char[str.size() + 1];
   strcpy(copy, str.c_str());
   return copy;