From 8a842a21c7a1086df9b3657880c5faf321e4c806 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 25 Jul 2025 10:42:40 -0400 Subject: [PATCH] build: osx carveouts --- include/xo/tokenizer/input_state.hpp | 2 ++ include/xo/tokenizer/tokenizer.hpp | 2 ++ include/xo/tokenizer/tokenizer_error.hpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/include/xo/tokenizer/input_state.hpp b/include/xo/tokenizer/input_state.hpp index 493a3823..f7f7293f 100644 --- a/include/xo/tokenizer/input_state.hpp +++ b/include/xo/tokenizer/input_state.hpp @@ -58,7 +58,9 @@ namespace xo { ///@{ #pragma GCC diagnostic push +#ifndef __APPLE__ #pragma GCC diagnostic ignored "-Wchanges-meaning" +#endif const span_type & current_line() const { return current_line_; } #pragma GCC diagnostic pop size_t current_pos() const { return current_pos_; } diff --git a/include/xo/tokenizer/tokenizer.hpp b/include/xo/tokenizer/tokenizer.hpp index 258d4900..ab4a9d6d 100644 --- a/include/xo/tokenizer/tokenizer.hpp +++ b/include/xo/tokenizer/tokenizer.hpp @@ -74,7 +74,9 @@ namespace xo { ///@{ #pragma GCC diagnostic push +#ifndef __APPLE__ #pragma GCC diagnostic ignored "-Wchanges-meaning" +#endif const input_state & input_state() const { return input_state_; } #pragma GCC diagnostic pop diff --git a/include/xo/tokenizer/tokenizer_error.hpp b/include/xo/tokenizer/tokenizer_error.hpp index b2ea6c2e..ebcf2a0f 100644 --- a/include/xo/tokenizer/tokenizer_error.hpp +++ b/include/xo/tokenizer/tokenizer_error.hpp @@ -55,7 +55,9 @@ namespace xo { const char * src_function() const { return src_function_; } const std::string & error_description() const { return error_description_; } #pragma GCC diagnostic push +#ifndef __APPLE__ #pragma GCC diagnostic ignored "-Wchanges-meaning" +#endif const input_state_type & input_state() const { return input_state_; } #pragma GCC diagnostic pop size_t tk_start() const { return input_state_.current_pos(); }