Skip to content

Commit

Permalink
Silence useless warning in src/json/json_spirit_writer_template.h to …
Browse files Browse the repository at this point in the history
…make important warnings easier to see.

warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
  • Loading branch information
wtogami committed Sep 8, 2013
1 parent 12564aa commit a6b3de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/json/json_spirit_writer_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\' );

Expand Down

0 comments on commit a6b3de1

Please sign in to comment.