Browse Source

Silence useless warning in src/json/json_spirit_writer_template.h to make important warnings easier to see.

warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
pull/1/head
Warren Togami 9 years ago
parent
commit
a6b3de1395
  1. 3
      src/json/json_spirit_writer_template.h

3
src/json/json_spirit_writer_template.h

@ -28,7 +28,8 @@ namespace json_spirit @@ -28,7 +28,8 @@ namespace json_spirit
template< class String_type >
String_type non_printable_to_string( unsigned int c )
{
typedef typename String_type::value_type Char_type;
// Silence the warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
// typedef typename String_type::value_type Char_type;
String_type result( 6, '\\' );

Loading…
Cancel
Save