build: osx carveouts

This commit is contained in:
Roland Conybeare 2025-07-25 10:42:40 -04:00
commit 8a842a21c7
3 changed files with 6 additions and 0 deletions

View file

@ -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_; }

View file

@ -74,7 +74,9 @@ namespace xo {
///@{
#pragma GCC diagnostic push
#ifndef __APPLE__
#pragma GCC diagnostic ignored "-Wchanges-meaning"
#endif
const input_state<CharT> & input_state() const { return input_state_; }
#pragma GCC diagnostic pop

View file

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