From a6ba3ad626ccd15f9104b3143c297f39cce6e050 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Aug 2017 18:19:12 +0200 Subject: src: remove ifdef DEBUG pollution Get rid of lots of ifdef DEBUG pollution in the code. The --debug= option is useful to get feedback from users, so it should be always there. And we really save nothing from keeping this code away from the control plane with a compile time option. Just running tests/shell/ before and after this patch, time shows almost no difference. So this patch leaves --enable-debug around to add debugging symbols in your builds, this is left set on by default. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index a187d098..c2fd67de 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -118,12 +118,10 @@ static void location_update(struct location *loc, struct location *rhs, int n) %initial-action { location_init(scanner, state, &yylloc); -#ifdef DEBUG if (debug_level & DEBUG_SCANNER) nft_set_debug(1, scanner); if (debug_level & DEBUG_PARSER) yydebug = 1; -#endif } %union { -- cgit v1.2.3