Skip to content

Commit 729b5fe

Browse files
author
mhaynie
committed
Fix include structure and disable -Wmissing-field-initializers
1 parent 4a608d8 commit 729b5fe

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ endif()
105105

106106
if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
107107
target_compile_options(${PROJECT_NAME} ${MH_PUBLIC_OR_INTERFACE} -pthread)
108+
target_compile_options(${PROJECT_NAME} ${MH_PUBLIC_OR_INTERFACE} -Wno-missing-field-initializers)
108109
target_link_options(${PROJECT_NAME} ${MH_PUBLIC_OR_INTERFACE} -pthread)
109110
endif()
110111

cpp/include/mh/io/fd_sink.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ namespace mh::io
4242
};
4343
}
4444

45+
#ifndef MH_COMPILE_LIBRARY
46+
#include "fd_sink.inl"
47+
#endif
48+
4549
#endif // __unix__

cpp/include/mh/io/fd_source.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ class fd_source : public source {
3838
};
3939
} // namespace mh::io
4040

41+
#ifndef MH_COMPILE_LIBRARY
42+
#include "fd_source.inl"
43+
#endif
44+
4145
#endif // __unix__

0 commit comments

Comments
 (0)