aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-11-11 17:44:56 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-11-11 17:44:56 -0800
commit07866e3cd6736879444ab9ace6b9ba58077d3f64 (patch)
tree2b68c46febed29b4ecf6d27959b5634fb38a28ff /src/json
parenta6aa179699aa4e885a7d93cd28a8af012cd5df2b (diff)
parenta6b3de139554574075008546e725d1ea604b266f (diff)
Merge pull request #2980 from wtogami/silenceunusedwarning
Silence useless warning in src/json/json_spirit_writer_template.h to mak...
Diffstat (limited to 'src/json')
-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, '\\' );