chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.72k stars 1.19k forks source link

Deprecated warnings on OSX with clang-17 #1449

Open ClausKlein opened 3 months ago

ClausKlein commented 3 months ago
builddriver executing: 'ninja'
Compilation SUCCEED in 2.064869 seconds
Number of warnings: 4
WarningErrorEntry(path='/Users/clausklein/.cache/CPM/boost/964cfc03697d853e339599bf2158b11856ea9757/libs/asio/include/boost/asio/detail/impl/socket_ops.ipp', lineno='2526', severity='warning', message="'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]", column='7')
WarningErrorEntry(path='/Users/clausklein/.cache/CPM/boost/964cfc03697d853e339599bf2158b11856ea9757/libs/asio/include/boost/asio/ip/impl/network_v4.ipp', lineno='138', severity='warning', message="'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]", column='3')
WarningErrorEntry(path='/Users/clausklein/.cache/CPM/boost/964cfc03697d853e339599bf2158b11856ea9757/libs/asio/include/boost/asio/ip/impl/network_v6.ipp', lineno='107', severity='warning', message="'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]", column='3')
WarningErrorEntry(path='/Users/clausklein/.cache/CPM/boost/964cfc03697d853e339599bf2158b11856ea9757/libs/mpi/src/environment.cpp', lineno='193', severity='warning', message="function declared 'noreturn' should not return [-Winvalid-noreturn]", column='1')
For full log, please open: /var/folders/wb/ckvxxgls5db7qyhqq4y5_l1c0000gq/T/build-ryglpwn6.log
bash-5.2$ 
ClausKlein commented 3 months ago

see too https://github.com/chriskohlhoff/asio/issues/1148