From a6b3de139554574075008546e725d1ea604b266f Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 7 Sep 2013 21:17:27 -1000 Subject: Silence useless warning in src/json/json_spirit_writer_template.h to make important warnings easier to see. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs] --- src/json/json_spirit_writer_template.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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, '\\' ); -- cgit v1.2.3