mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Build with -Wmissing-declarations (#71)
This flag is used to find global functions defined without a previous declaration. Usually it spots accidental globals, but in this case it was just missing headers.
This commit is contained in:
parent
0a9a72cbaa
commit
73a3c24394
@ -142,6 +142,7 @@ foreach(lib screen dom component)
|
||||
target_compile_options(${lib} PRIVATE "-Wextra")
|
||||
target_compile_options(${lib} PRIVATE "-pedantic")
|
||||
target_compile_options(${lib} PRIVATE "-Werror")
|
||||
target_compile_options(${lib} PRIVATE "-Wmissing-declarations")
|
||||
target_compile_options(${lib} PRIVATE "-Wno-sign-compare")
|
||||
endif()
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "ftxui/dom/elements.hpp"
|
||||
#include "ftxui/dom/node.hpp"
|
||||
|
||||
namespace ftxui {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <algorithm>
|
||||
#include "ftxui/dom/elements.hpp"
|
||||
#include "ftxui/dom/node.hpp"
|
||||
#include "ftxui/screen/string.hpp"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user