Bump liberty, avoid fall-through warnings
This commit is contained in:
@@ -8,7 +8,7 @@ option (WANT_LIBEDIT "Use BSD libedit for the UI" OFF)
|
|||||||
# Moar warnings
|
# Moar warnings
|
||||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
||||||
# -Wunused-function is pretty annoying here, as everything is static
|
# -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}")
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}")
|
||||||
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
|
||||||
|
|||||||
@@ -2848,6 +2848,7 @@ attr_printer_decode_color (int color, bool *is_bright)
|
|||||||
c16 -= 8;
|
c16 -= 8;
|
||||||
*is_bright = true;
|
*is_bright = true;
|
||||||
}
|
}
|
||||||
|
// Fall-through
|
||||||
case 16:
|
case 16:
|
||||||
return c16;
|
return c16;
|
||||||
|
|
||||||
|
|||||||
1
kike.c
1
kike.c
@@ -3216,6 +3216,7 @@ start:
|
|||||||
case 3:
|
case 3:
|
||||||
if ((buf[0] & 0x80) && buf[2] == 1)
|
if ((buf[0] & 0x80) && buf[2] == 1)
|
||||||
return true;
|
return true;
|
||||||
|
// Fall-through
|
||||||
case 2:
|
case 2:
|
||||||
if (buf[0] == 22 && buf[1] == 3)
|
if (buf[0] == 22 && buf[1] == 3)
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
2
liberty
2
liberty
Submodule liberty updated: 3835b6e499...da75b6f735
Reference in New Issue
Block a user