diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 2795c15225..9c50faf4a3 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -276,7 +276,6 @@ class Board: '-Werror=implicit-fallthrough', ] env.CXXFLAGS += [ - '-fcheck-new', '-fsingle-precision-constant', '-Wno-psabi', ] diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index 4f1e7a8626..1d1c5052cb 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -162,7 +162,11 @@ def check_elf_symbols(task): # we use string find on these symbols, so this catches all types of throw # calls this should catch all uses of exceptions unless the compiler # manages to inline them - blacklist = ['std::__throw'] + blacklist = ['std::__throw', + 'operator new[](unsigned int)', + 'operator new[](unsigned long)', + 'operator new(unsigned int)', + 'operator new(unsigned long)'] nmout = subprocess.getoutput("%s -C %s" % (task.env.get_flat('NM'), elfpath)) for b in blacklist: