Author
anonymous
almost 4 years ago
Language
C++
Compiler
clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
Author
anonymous
almost 4 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
In file included from prog.cc:4:
/opt/wandbox/boost-1.73.0/clang-head/include/boost/bind.hpp:36:1: warning: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE(
^
/opt/wandbox/boost-1.73.0/clang-head/include/boost/config/pragma_message.hpp:24:34: note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
^
<scratch space>:118:2: note: expanded from here
message("The practice of declaring the Bind placeholders (_1, _2, ...) " "in the global namespace is deprecated. Please use " "<boost/bind/bind.hpp> + using namespace boost::placeholders, " "or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.")
^
prog.cc:31:46: warning: unused parameter 's' [-Wunused-parameter]
void handle_read(std::shared_ptr<Session>& s,
^
prog.cc:33:27: warning: unused parameter 'bytes_transferred' [-Wunused-parameter]
size_t bytes_transferred)
^
prog.cc:86:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char *argv[])
^
prog.cc:86:26: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char *argv[])
^
5 warnings generated.