Skip to content

Commit 7859378

Browse files
remove -Wno-unused-function
1 parent 22b42c2 commit 7859378

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

libcanard/canard.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ typedef enum canard_kind_t
104104
} canard_kind_t;
105105
#define CANARD_KIND_COUNT 7
106106

107-
static uint_least8_t canard_kind_version(const canard_kind_t kind) { return (kind < canard_kind_v0_message) ? 1 : 0; }
107+
static inline uint_least8_t canard_kind_version(const canard_kind_t kind)
108+
{
109+
return (kind < canard_kind_v0_message) ? 1 : 0;
110+
}
108111

109112
typedef struct canard_t canard_t;
110113

tests/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ function(gen_test_single name files) # When the full matrix is not needed, to ke
9191
gen_test("${name}" "${files}" "" "-m32" "-m32" "11")
9292
endfunction()
9393

94-
# XXX TODO FIXME REMOVE THIS WHEN IMPLEMENTATION COMPLETE
95-
add_compile_options(-Wno-unused-function)
96-
9794
# Add the test targets.
9895
# Intrusive tests directly #include <canard.c> to access the internals.
9996
gen_test_matrix(test_helpers "src/test_helpers.c")

0 commit comments

Comments
 (0)