fix warnings
authorDmitriy Korniychuk <dmitiry@korniychuk.org.ua>
Wed, 12 Nov 2014 09:10:31 +0000 (11:10 +0200)
committerDmitriy Korniychuk <dmitiry@korniychuk.org.ua>
Wed, 12 Nov 2014 09:10:31 +0000 (11:10 +0200)
src/json/json_spirit_writer_template.h
src/util.cpp

index 28c49dd..18a3f20 100644 (file)
@@ -28,8 +28,6 @@ namespace json_spirit
     template< class String_type >
     String_type non_printable_to_string( unsigned int c )
     {
-        typedef typename String_type::value_type Char_type;
-
         String_type result( 6, '\\' );
 
         result[1] = 'u';
index 198267d..9f64643 100644 (file)
@@ -319,7 +319,7 @@ string vstrprintf(const char *format, va_list ap)
         va_copy(arg_ptr, ap);
 #else
         va_list arg_ptr = ap;
-#endif;
+#endif
 #ifdef WIN32
         ret = _vsnprintf(p, limit, format, arg_ptr);
 #else