Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 2 years ago

Language

C++

Compiler

clang 15.0.7

Options
Warnings
Don't Use Boost
C++17
-pedantic-errors

Author

anonymous

almost 2 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc:19:21: warning: adding 'std::basic_string<char>::value_type' (aka 'char') to a string does not append to the string [-Wstring-plus-int]
        repr += " " + DIGITS[(chr & 240) >> 4] + DIGITS[chr & 15];
                ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:19:21: note: use array indexing to silence this warning
        repr += " " + DIGITS[(chr & 240) >> 4] + DIGITS[chr & 15];
                    ^
                &   [                         ]
prog.cc:16:22: warning: unused function 'hexlify' [-Wunused-function]
static inline string hexlify(bytes arr) {
                     ^
2 warnings generated.
Exit Code:
0