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(); }