Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In instantiation of 'int operator""_probe() [with T = char; T ...Chars = {'H', 'e', 'l', 'l', 'o'}]':
prog.cc:36:22:   required from here
prog.cc:26:27: warning: unused variable 'str' [-Wunused-variable]
     static constexpr char str[sizeof...(Chars) + 1] = { Chars..., '\0' };
                           ^~~
prog.cc: In instantiation of 'int operator""_probe() [with T = char; T ...Chars = {'W', 'o', 'r', 'l', 'd'}]':
prog.cc:37:22:   required from here
prog.cc:26:27: warning: unused variable 'str' [-Wunused-variable]
prog.cc: In instantiation of 'static int Registrator<T, Chars>::run() [with T = char; T ...Chars = {'H', 'e', 'l', 'l', 'o'}]':
prog.cc:27:41:   required from 'int operator""_probe() [with T = char; T ...Chars = {'H', 'e', 'l', 'l', 'o'}]'
prog.cc:36:22:   required from here
prog.cc:12:6: warning: statement has no effect [-Wunused-value]
     {&dummy_;
      ^
prog.cc: In instantiation of 'static int Registrator<T, Chars>::run() [with T = char; T ...Chars = {'W', 'o', 'r', 'l', 'd'}]':
prog.cc:27:41:   required from 'int operator""_probe() [with T = char; T ...Chars = {'W', 'o', 'r', 'l', 'd'}]'
prog.cc:37:22:   required from here
prog.cc:12:6: warning: statement has no effect [-Wunused-value]
Registering: Hello
Registering: World
g_foo=2
g_foo=2
Exit Code:
0