mu-sexp: fix c++23 warning for suffix operator

Space between operator"" and _xxx is deprecated.
This commit is contained in:
Dirk-Jan C. Binnema
2025-03-23 09:20:59 +02:00
parent a8fac834d3
commit c91e4ef515
2 changed files with 5 additions and 2 deletions

View File

@ -301,7 +301,7 @@ MU_ENABLE_BITOPS(Sexp::Format);
* String-literal; allow for ":foo"_sym to be a symbol * String-literal; allow for ":foo"_sym to be a symbol
*/ */
static inline Sexp::Symbol static inline Sexp::Symbol
operator"" _sym(const char* str, std::size_t n) operator""_sym(const char* str, std::size_t n)
{ {
return Sexp::Symbol{str}; return Sexp::Symbol{str};
} }

View File

@ -62,7 +62,10 @@ extra_flags = [
'-Wno-switch-enum', '-Wno-switch-enum',
# assuming these are false alarm... (in fmt, with gcc13): # assuming these are false alarm... (in fmt, with gcc13):
'-Wno-array-bounds', '-Wno-array-bounds',
'-Wno-stringop-overflow',] '-Wno-stringop-overflow',
# c++23, in tabulate.hpp (3rd-party)
'-Wno-deprecated-literal-operator'
]
if (cxx.get_id() == 'clang') if (cxx.get_id() == 'clang')
extra_flags += [ extra_flags += [