Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20191126 (experimental)

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

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:18:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   18 |  printf("sysconf(_SC_AIO_MAX) = %d\n", sysconf(_SC_AIO_MAX));
      |                                 ~^     ~~~~~~~~~~~~~~~~~~~~
      |                                  |            |
      |                                  int          long int
      |                                 %ld
_SC_AIO_MAX is defined
unsupported
_SC_AIO_MAX = 24
sysconf(_SC_AIO_MAX) = -1
Exit Code:
0