aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2018-01-07 05:45:34 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2018-01-07 17:37:19 +0100
commitdc47b16034df32a1a04b0322f1cc51c055986099 (patch)
tree3d57fd661f6584db8d8eb7c7bbc19181cec0d3f6
parentd0f19f8be3e33198d36d68c845a1bd965f4c8f74 (diff)
downloadxK-dc47b16034df32a1a04b0322f1cc51c055986099.tar.gz
xK-dc47b16034df32a1a04b0322f1cc51c055986099.tar.xz
xK-dc47b16034df32a1a04b0322f1cc51c055986099.zip
Bump liberty, avoid fall-through warnings
-rw-r--r--CMakeLists.txt2
-rw-r--r--degesch.c1
-rw-r--r--kike.c1
m---------liberty0
4 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07f5dc3..fa0fe2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ option (WANT_LIBEDIT "Use BSD libedit for the UI" OFF)
# Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# -Wunused-function is pretty annoying here, as everything is static
- set (wdisabled "-Wno-unused-function -Wno-implicit-fallthrough")
+ set (wdisabled "-Wno-unused-function")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}")
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
diff --git a/degesch.c b/degesch.c
index 2f8dc83..08ffb5e 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2848,6 +2848,7 @@ attr_printer_decode_color (int color, bool *is_bright)
c16 -= 8;
*is_bright = true;
}
+ // Fall-through
case 16:
return c16;
diff --git a/kike.c b/kike.c
index 2c79d57..abd0e98 100644
--- a/kike.c
+++ b/kike.c
@@ -3216,6 +3216,7 @@ start:
case 3:
if ((buf[0] & 0x80) && buf[2] == 1)
return true;
+ // Fall-through
case 2:
if (buf[0] == 22 && buf[1] == 3)
return true;
diff --git a/liberty b/liberty
-Subproject 3835b6e49975039a9f72b8920238f3141e7bece
+Subproject da75b6f7356e9dc34dc4005ee993cee84c6bf5b