I have also used the DIAG_TOP() macro in the patch if you grep for it. the DIAG_TOP()...
For those warnings you will see there is a macro called GPUTILS_GCC_DIAG_TOP(). For...
GCC diagnostic pragma patch for compilers older than gcc 4.6