From what I can tell by looking at the other files, I've to put the #if defined(HPX_GCC_VERSION) && HPX_GCC_VERSION >= 100000 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif