Without the change build fails on upstream gcc-10 as:
ld: CMakeFiles/ambit.dir/libambit.c.o:(.rodata+0x40): multiple definition of
`ambit_waypoint_types_from_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x20): first defined here