mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:07:45 +00:00
Enable -Wimplicit-fallthrough.
This commit is contained in:
parent
56f0a30f9b
commit
df6aaaeeef
11 changed files with 12 additions and 12 deletions
|
@ -6,7 +6,7 @@ APP = About
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -7,7 +7,7 @@ APP = Clock
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -7,7 +7,7 @@ APP = FileManager
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -7,7 +7,7 @@ APP = FontEditor
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -6,7 +6,7 @@ APP = Launcher
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -7,7 +7,7 @@ APP = Terminal
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
INCLUDE_FLAGS = -I../.. -I. -I../../LibC
|
||||||
|
|
|
@ -85,7 +85,7 @@ IMAGE = .floppy-image
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-ident -fno-builtin
|
KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-ident -fno-builtin
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
||||||
INCLUDE_FLAGS = -I.. -I.
|
INCLUDE_FLAGS = -I.. -I.
|
||||||
|
|
|
@ -417,14 +417,14 @@ void VirtualConsole::on_char(byte ch)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_escape_state = ExpectIntermediate;
|
m_escape_state = ExpectIntermediate;
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case ExpectIntermediate:
|
case ExpectIntermediate:
|
||||||
if (is_valid_intermediate_character(ch)) {
|
if (is_valid_intermediate_character(ch)) {
|
||||||
m_intermediates.append(ch);
|
m_intermediates.append(ch);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_escape_state = ExpectFinal;
|
m_escape_state = ExpectFinal;
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case ExpectFinal:
|
case ExpectFinal:
|
||||||
if (is_valid_final_character(ch)) {
|
if (is_valid_final_character(ch)) {
|
||||||
m_escape_state = Normal;
|
m_escape_state = Normal;
|
||||||
|
|
|
@ -55,7 +55,7 @@ LIBRARY = LibC.a
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -O2 -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -O2 -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I.. -I.
|
INCLUDE_FLAGS = -I.. -I.
|
||||||
|
|
|
@ -37,7 +37,7 @@ LIBRARY = LibGUI.a
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I../LibC -I.. -I.
|
INCLUDE_FLAGS = -I../LibC -I.. -I.
|
||||||
|
|
|
@ -64,7 +64,7 @@ APPS = \
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
||||||
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
||||||
INCLUDE_FLAGS = -I.. -I. -I../LibC
|
INCLUDE_FLAGS = -I.. -I. -I../LibC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue