Fix a gcc warning.

This commit is contained in:
Mark de Wever 2011-09-17 16:55:16 +00:00
parent c1c3dc08dc
commit 3f4204bce1

View file

@ -130,7 +130,7 @@ inline std::string operator+(const n_token::t_token &a, const n_token::t_token &
n_token::t_token const & name();
#define DEFAULT_TOKEN_BODY(name, value) \
n_token::t_token const & name() { \
static n_token::t_token const & name() { \
/*This is NOTa memory leak \
It is static so it is only allocated once and not de-allocated until the program terminates. \
If changed to a static reference it may cause a static de-initialization \