mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:43:33 +08:00
Merge pull request #1527 from dagar/Werror
turn on -Werror and fix resulting errors
This commit is contained in:
@@ -41,3 +41,6 @@ SRCS = mixer.cpp
|
||||
MODULE_STACKSIZE = 4096
|
||||
|
||||
MAXOPTIMIZATION = -Os
|
||||
|
||||
EXTRACXXFLAGS = -Wframe-larger-than=2048
|
||||
|
||||
|
||||
@@ -6,3 +6,6 @@ MODULE_COMMAND = mtd
|
||||
SRCS = mtd.c 24xxxx_mtd.c
|
||||
|
||||
MAXOPTIMIZATION = -Os
|
||||
|
||||
EXTRACFLAGS = -Wno-error
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ static void
|
||||
do_show(const char* search_string)
|
||||
{
|
||||
printf(" + = saved, * = unsaved\n");
|
||||
param_foreach(do_show_print, search_string, false);
|
||||
param_foreach(do_show_print, (char *)search_string, false);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -34,3 +34,6 @@ SRCS = test_adc.c \
|
||||
test_conv.cpp \
|
||||
test_mount.c \
|
||||
test_mtd.c
|
||||
|
||||
EXTRACXXFLAGS = -Wframe-larger-than=2500
|
||||
|
||||
|
||||
Reference in New Issue
Block a user