remove compiler warnings adjust errno_location to new __thread errno
#include <threads.h> void mtx_destroy(mtx_t* mutex) { // no need to do anything (void)mutex; }