mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 04:20:34 +08:00
remove Wpacked and cleanup unused warning flags
This commit is contained in:
committed by
Lorenz Meier
parent
f58596bbcd
commit
2487dbfc92
@@ -80,8 +80,6 @@ px4_add_module(
|
||||
MODULE modules__systemlib
|
||||
COMPILE_FLAGS
|
||||
-Wno-sign-compare
|
||||
-Wno-attributes
|
||||
-Wno-packed
|
||||
-Os
|
||||
SRCS ${SRCS}
|
||||
DEPENDS
|
||||
|
||||
@@ -173,7 +173,7 @@ param_assert_locked(void)
|
||||
static bool
|
||||
handle_in_range(param_t param)
|
||||
{
|
||||
int count = get_param_info_count();
|
||||
unsigned count = get_param_info_count();
|
||||
return (count && param < count);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user