fix a minor compil warning
This commit is contained in:
parent
667acd1149
commit
67ec09c850
|
@ -84,10 +84,10 @@ inline bool write_ostream_unicode(std::ostream& os, fmt::string_view data) {
|
||||||
#elif defined(_WIN32) && defined(__GLIBCXX__)
|
#elif defined(_WIN32) && defined(__GLIBCXX__)
|
||||||
auto* rdbuf = os.rdbuf();
|
auto* rdbuf = os.rdbuf();
|
||||||
FILE* c_file;
|
FILE* c_file;
|
||||||
if (auto* fbuf = dynamic_cast<__gnu_cxx::stdio_sync_filebuf<char>*>(rdbuf))
|
if (auto* fbuf_sy = dynamic_cast<__gnu_cxx::stdio_sync_filebuf<char>*>(rdbuf))
|
||||||
c_file = fbuf->file();
|
c_file = fbuf_sy->file();
|
||||||
else if (auto* fbuf = dynamic_cast<__gnu_cxx::stdio_filebuf<char>*>(rdbuf))
|
else if (auto* fbuf_as = dynamic_cast<__gnu_cxx::stdio_filebuf<char>*>(rdbuf))
|
||||||
c_file = fbuf->file();
|
c_file = fbuf_as->file();
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
if (c_file) return write_console(c_file, data);
|
if (c_file) return write_console(c_file, data);
|
||||||
|
|
Loading…
Reference in New Issue