Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
342 stars 132 forks source link

Add option to ignore deprecation warnings #15

Closed driazati closed 3 years ago

driazati commented 3 years ago

Due to a depdency chain that isn't really maintained anymore, these warnings aren't getting fixed anytime soon and they clog up the build logs for PyTorch (see https://github.com/pytorch/pytorch/issues/33760). This adds an option so they can be disabled by users.

Maratyszcza commented 3 years ago

a134dd5d4cee80cce15db81a72e7f929d71dd413 removes deprecated attribute from function pointer declarations, and this should be enough to avoid warnings in codes that don't use deprecated API.