Verified Commit a831dd8e authored by Moritz Bunkus's avatar Moritz Bunkus

avoid pedantic warning when building fmt

Actual warning:

lib/fmt/include/fmt/format.h:3475:55: warning: ISO C++ did not adopt string literal operator templates taking an argument pack of characters [-Wpedantic]
 3475 | FMT_CONSTEXPR internal::udl_formatter<Char, CHARS...> operator""_format() {
      |                                                       ^~~~~~~~

This has already been fixed in fmt's master branch.
parent 2548a7f3
......@@ -318,10 +318,15 @@ cxx_compiler = lambda do |*args|
pchu = pchi.use_flags ? " #{pchi.use_flags}" : ""
pchx = pchi.extra_flags ? " #{pchi.extra_flags}" : ""
lang = pchi.language ? pchi.language : "c++"
flags = $flags[:cxxflags]
if %r{lib/fmt/}.match(source)
flags.gsub!(%r{-Wpedantic}, '')
end
args = [
"cxx", source,
"#{c(:CXX)} #{$flags[:cxxflags]}#{pchu}#{pchx} #{$system_includes} -c -MMD -MF #{dep} -o #{t.name} -x #{lang} #{source}",
"#{c(:CXX)} #{flags}#{pchu}#{pchx} #{$system_includes} -c -MMD -MF #{dep} -o #{t.name} -x #{lang} #{source}",
:allow_failure => true
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment