Fix a gcc warning.
This commit is contained in:
parent
c1c3dc08dc
commit
3f4204bce1
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue