Can not use SDL_assert on gcc

While I try to compile some library under gcc 7.2, under Ubuntu 17.10 I get the following error:

/usr/include/SDL2/SDL_assert.h:69:25: error: ISO C does not support ‘__FUNCTION__’ predefined identifier [-Wpedantic]

Somebody knows what may be happening? The library is compiled with cmake, I don’t know exactly what flags it is using.