aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWarren Togami <wtogami@gmail.com>2013-09-07 21:17:27 -1000
committerWarren Togami <wtogami@gmail.com>2013-09-07 21:20:46 -1000
commita6b3de139554574075008546e725d1ea604b266f (patch)
treef8bd61e71802031d7ff60799ad20b47c54da667e /src
parent12564aa1664cb81b3a81e1a706bde997108aba00 (diff)
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]
Diffstat (limited to 'src')
-rw-r--r--src/json/json_spirit_writer_template.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json/json_spirit_writer_template.h b/src/json/json_spirit_writer_template.h
index 28c49ddc64..6b4978a1ff 100644
--- a/src/json/json_spirit_writer_template.h
+++ b/src/json/json_spirit_writer_template.h
@@ -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, '\\' );