1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-17 21:35:37 +03:00

Enable -Wstrict-prototypes

Also, fix all warnings shown when it's enabled
This commit is contained in:
Alberto García Hierro 2019-04-26 15:57:49 +01:00
parent 90a592e974
commit ae01b3453a
12 changed files with 19 additions and 14 deletions

View file

@ -61,6 +61,10 @@ class Compiler
if flag == "" || flag == "-MMD" || flag == "-MP" || flag.start_with?("-save-temps")
next
end
# -Wstrict-prototypes is not valid for C++
if flag == "-Wstrict-prototypes"
next
end
if flag.start_with? "-std="
flag = "-std=c++11"
end