Remove Log_levels global definition.

The -fno-common flag indicates the Log_levels is defined in many
places.

First, it's not required to have a global Log_levels, just the
enum type LOG_LEVELS. The problem of define a global variable in
many modules is that the linker may choose the wrong one. This
causes very hard-to-find linker bugs.

Second, the Log_levels is not extern and waste binary space.
Signed-off-by: 's avatarGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
parent 9aa2ce02
......@@ -40,7 +40,7 @@ enum LOG_LEVELS {
LOG_ERROR,
LOG_SEVERE,
LOG_FATAL,
} Log_levels;
};
/*BE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment