diff options
author | Brian Behlendorf <[email protected]> | 2010-06-30 17:05:36 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-06-30 17:05:36 -0700 |
commit | c950d1480dc2bf72b4ea69f32976be016c66135f (patch) | |
tree | 6e07bc31dca7d3b449c101178d55b97d9e1ff2de /spl_config.h.in | |
parent | 6801b7154ccd8df47564d0f888166f3da931f3ff (diff) |
Only make compiler warnings fatal with --enable-debug
While in theory I like the idea of compiler warnings always being
fatal. In practice this causes problems when small harmless errors
cause build failures for end users. To handle this I've updated
the build system such that -Werror is only used when --enable-debug
is passed to configure. This is how I always build when developing
so I'll catch all build warnings and end users will not get stuck
by minor issues.
Diffstat (limited to 'spl_config.h.in')
-rw-r--r-- | spl_config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in index a22ca7b8b..540b79392 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -3,6 +3,9 @@ /* Atomic types use spinlocks */ #undef ATOMIC_SPINLOCK +/* Define to 1 to enable debug */ +#undef DEBUG + /* Define to 1 to enable basic kmem accounting */ #undef DEBUG_KMEM @@ -208,6 +211,9 @@ */ #undef LT_OBJDIR +/* Define to 1 to enable debug */ +#undef NDEBUG + /* get_zone_counts() is needed */ #undef NEED_GET_ZONE_COUNTS |