summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--source/helper.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index b1c69286..3c5a370f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ AM_PROG_AR
dnl ---------------------------------------------------------------------
dnl Base CFLAGS
dnl ---------------------------------------------------------------------
-AM_CFLAGS="-Wall -Wextra -Wparentheses -Winline -pedantic"
+AM_CFLAGS="-Wall -Wextra -Wparentheses -Winline -pedantic -Wunreachable-code"
dnl ---------------------------------------------------------------------
dnl Enable source code coverage reporting for GCC
diff --git a/source/helper.c b/source/helper.c
index bcec3f36..5665928a 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -544,14 +544,6 @@ int config_sanity_check ( xcb_connection_t* xcb_connection )
config.location = WL_CENTER;
found_error = 1;
}
- if ( 0 ) {
- if ( !( config.line_margin <= 50 ) ) {
- g_string_append_printf ( msg, "\t<b>config.line_margin</b>=%d is invalid. Value should be between %d and %d.\n",
- config.line_margin, 0, 50 );
- config.line_margin = 2;
- found_error = 1;
- }
- }
if ( config.fullscreen && config.monitor != -1 ) {
g_string_append_printf ( msg,
"\t<b>config.monitor</b>=%d is invalid. Value should be unset (-1) when fullscreen mode is enabled.\n",