Make make_chaff() static class function to fix spurious clang warning

This commit is contained in:
Keith Winstein
2012-03-18 14:11:49 -04:00
parent 1d19f9b7de
commit 483bfe9f0f
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -260,7 +260,8 @@ void TransportSender<MyState>::rationalize_states( void )
} }
} }
static const string make_chaff( void ) template <class MyState>
const string TransportSender<MyState>::make_chaff( void )
{ {
const int CHAFF_MAX = 16; const int CHAFF_MAX = 16;
+2
View File
@@ -86,6 +86,8 @@ namespace Network {
uint64_t last_heard; /* last time received new state */ uint64_t last_heard; /* last time received new state */
static const string make_chaff( void );
public: public:
/* constructor */ /* constructor */
TransportSender( Connection *s_connection, MyState &initial_state ); TransportSender( Connection *s_connection, MyState &initial_state );