The comments (and the name of the function) say it returns an address, of an event register. So the return type should be a pointer type? This causes compile errors on stricter compilers.
components/nrf_drivers/hal/nrf_rtc.h
nRF5_SDK_14.2.0_17b948a
arm-none-eabi-gcc version 4.9.3 compiling as C++