aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-11-11 17:44:56 -0800
committerGavin Andresen <[email protected]>2013-11-11 17:44:56 -0800
commit07866e3cd6736879444ab9ace6b9ba58077d3f64 (patch)
tree2b68c46febed29b4ecf6d27959b5634fb38a28ff
parentMerge pull request #3187 from Diapolo/netManager (diff)
parentSilence useless warning in src/json/json_spirit_writer_template.h to make imp... (diff)
downloaddiscoin-07866e3cd6736879444ab9ace6b9ba58077d3f64.tar.xz
discoin-07866e3cd6736879444ab9ace6b9ba58077d3f64.zip
Merge pull request #2980 from wtogami/silenceunusedwarning
Silence useless warning in src/json/json_spirit_writer_template.h to mak...
-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 28c49ddc6..6b4978a1f 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, '\\' );