Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Weverything

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Weverything
In file included from prog.cc:3:
/opt/wandbox/clang-head/include/c++/v1/cstdint:11:9: warning: macro name is a reserved identifier [-Wreserved-id-macro]
#define _LIBCPP_CSTDINT
        ^
In file included from prog.cc:3:
In file included from /opt/wandbox/clang-head/include/c++/v1/cstdint:143:
/opt/wandbox/clang-head/include/c++/v1/__config:10:9: warning: macro name is a reserved identifier [-Wreserved-id-macro]
#define _LIBCPP_CONFIG_SITE
        ^
/opt/wandbox/clang-head/include/c++/v1/__config:49:9: warning: macro name is a reserved identifier [-Wreserved-id-macro]
#define _LIBCPP_CONFIG
        ^
In file included from prog.cc:3:
In file included from /opt/wandbox/clang-head/include/c++/v1/cstdint:144:
/opt/wandbox/clang-head/include/c++/v1/stdint.h:15:9: warning: macro name is a reserved identifier [-Wreserved-id-macro]
#define _LIBCPP_STDINT_H
        ^
prog.cc:7:11: warning: 'long long' is incompatible with C++98 [-Wc++98-compat-pedantic]
   *p |= (1ll << i);   // OK
          ^
prog.cc:5:6: warning: no previous prototype for function 'SetBit' [-Wmissing-prototypes]
void SetBit(uint64_t *p, int i) {
     ^
prog.cc:5:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void SetBit(uint64_t *p, int i) {
^
static 
6 warnings generated.
Exit Code:
0