fixed compiler warnings with GCC 11