#84 -DNODEBUG compiler option breaks build

closed
nobody
None
5
2004-10-15
2004-10-14
Mikhail T.
No

Hello!

I have the -DNODEBUG option in the CFLAGS. This options
breaks the compiles -- src/debug.h conditions many declarations
on the flag, but various .c-files use them without checking for the
options -- in debug.c (BIT_NAMES), bogoread.c
(DEBUG_READER(0)), debug.main.c.

Discussion

  • David Relson

    David Relson - 2004-10-14

    Logged In: YES
    user_id=30510

    Mikhail,

    Good catch! Try this patch.

    David

    --- debug.h 22 Feb 2004 16:57:00 -0000 1.10
    +++ debug.h 14 Oct 2004 11:33:04 -0000
    @@ -14,7 +14,6 @@

    #define MASK_BIT(uc) ( 1 << (uc - 'A'))

    -#ifndef NODEBUG
    #define BIT_NAMES "abcdfghlmstw"
    #define BIT_ALGORITHM MASK_BIT('A')
    #define BIT_READER MASK_BIT('B')
    @@ -28,7 +27,6 @@
    #define BIT_SPAMICITY MASK_BIT('S')
    #define BIT_TEXT MASK_BIT('T')
    #define BIT_WORDLIST MASK_BIT('W')
    -#endif

    extern FILE *dbgout;
    extern u_int32_t debug_mask;
    @@ -41,6 +39,7 @@
    #define DEBUG_HTML(level) 0
    #define DEBUG_LEXER(level) 0
    #define DEBUG_MIME(level) 0
    +#define DEBUG_READER(level) 0
    #define DEBUG_REGISTER(level) 0
    #define DEBUG_SPAMICITY(level) 0
    #define DEBUG_TEXT(level) 0

     
  • David Relson

    David Relson - 2004-10-15
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks