From 8ed390c3bfc04e922442954ba3353fdfe1fb54d9 Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Fri, 22 Dec 2023 19:43:19 +0100 Subject: [PATCH] Suppress GCC warning --- include/rfl/internal/get_field_names.hpp | 6 ++++++ include/rfl/internal/has_n_fields.hpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/include/rfl/internal/get_field_names.hpp b/include/rfl/internal/get_field_names.hpp index e178469d..19f52601 100644 --- a/include/rfl/internal/get_field_names.hpp +++ b/include/rfl/internal/get_field_names.hpp @@ -17,6 +17,12 @@ #include "rfl/internal/num_fields.hpp" #include "rfl/internal/to_ptr_tuple.hpp" +#if __GNUC__ +#ifndef __clang__ +#pragma GCC system_header +#endif +#endif + namespace rfl { namespace internal { diff --git a/include/rfl/internal/has_n_fields.hpp b/include/rfl/internal/has_n_fields.hpp index 5665a616..453802c6 100644 --- a/include/rfl/internal/has_n_fields.hpp +++ b/include/rfl/internal/has_n_fields.hpp @@ -5,6 +5,12 @@ #include #include +#if __GNUC__ +#ifndef __clang__ +#pragma GCC system_header +#endif +#endif + namespace rfl { namespace internal {