remove #warning (for -pedantic-errors) (RT#87398)

The #warning pragma is not standard C89 and throws an error under
-pedantic-errors.