MCPcopy Create free account
hub / github.com/FastLED/FastLED / unused_parameter_function

Function unused_parameter_function

tests/fl/stl/compiler_control.cpp:9–14  ·  view source on GitHub ↗

Test helper: Function that would normally trigger a warning

Source from the content-addressed store, hash-verified

7
8// Test helper: Function that would normally trigger a warning
9static int unused_parameter_function(int x, FL_MAYBE_UNUSED int y) {
10 FL_DISABLE_WARNING_PUSH
11 FL_DISABLE_WARNING_UNUSED_PARAMETER
12 return x; // y is unused
13 FL_DISABLE_WARNING_POP
14}
15
16// Test helper: Function with implicit fallthrough
17static int fallthrough_function(int x) {

Callers 1

FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected