Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190519 (experimental)

Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a
prog.cc:7:6: error: 'ConfigWatcher' has not been declared
    7 | void ConfigWatcher::check() {
      |      ^~~~~~~~~~~~~
prog.cc: In function 'void check()':
prog.cc:8:12: error: 'run' was not declared in this scope
    8 |     while (run)
      |            ^~~
prog.cc:10:24: error: 'fds' was not declared in this scope; did you mean 'ffs'?
   10 |         int ret = poll(fds, 1, 1000);
      |                        ^~~
      |                        ffs
prog.cc:10:19: error: 'poll' was not declared in this scope
   10 |         int ret = poll(fds, 1, 1000);
      |                   ^~~~
prog.cc:17:30: error: 'POLLRDNORM' was not declared in this scope
   17 |         if (fds[0].revents & POLLRDNORM) {
      |                              ^~~~~~~~~~
prog.cc:18:26: error: 'fd' was not declared in this scope
   18 |             int l = read(fd, buffer, BUF_LEN);
      |                          ^~
prog.cc:18:30: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
   18 |             int l = read(fd, buffer, BUF_LEN);
      |                              ^~~~~~
      |                              setbuffer
prog.cc:18:38: error: 'BUF_LEN' was not declared in this scope
   18 |             int l = read(fd, buffer, BUF_LEN);
      |                                      ^~~~~~~
prog.cc:18:21: error: 'read' was not declared in this scope; did you mean 'fread'?
   18 |             int l = read(fd, buffer, BUF_LEN);
      |                     ^~~~
      |                     fread
prog.cc:20:16: error: 'fn' was not declared in this scope
   20 |             cb(fn);
      |                ^~
prog.cc:20:13: error: 'cb' was not declared in this scope
   20 |             cb(fn);
      |             ^~
prog.cc: In function 'int main(int, char**, char**)':
prog.cc:25:14: warning: unused parameter 'argc' [-Wunused-parameter]
   25 | int main(int argc, char *argp[], char *envp[]) {
      |          ~~~~^~~~
prog.cc:25:26: warning: unused parameter 'argp' [-Wunused-parameter]
   25 | int main(int argc, char *argp[], char *envp[]) {
      |                    ~~~~~~^~~~~~
prog.cc:25:40: warning: unused parameter 'envp' [-Wunused-parameter]
   25 | int main(int argc, char *argp[], char *envp[]) {
      |                                  ~~~~~~^~~~~~
Exit Code:
1