Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git 1df947ab403a9ec3bb1bf4cd83610a997dc4f3bc)

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

about 5 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2a
prog.cc:15:25: warning: format specifies type 'char *' but the argument has type 'const char8_t *' [-Wformat]
    std::printf("\n%s", hiragana ) ; // yes work (GNUC, LVVM) with format warning
                   ~~   ^~~~~~~~
                   %s
prog.cc:16:25: warning: format specifies type 'char *' but the argument has type 'const char8_t *' [-Wformat]
    std::printf("\n%s", hiragana_first ) ; // yes work (GNUC, LVVM) with format warning
                   ~~   ^~~~~~~~~~~~~~
                   %s
prog.cc:13:30: warning: unused variable 'a' [-Wunused-variable]
    /*char8_t const*/ auto & a = hiragana[0] ; 
                             ^
3 warnings generated.

ひらがな
ひ
Exit Code:
0