function to help GCC detect incompatibilities between the two when it's enhanced to do so. (cherry picked from commit ee4e992e)