media_clocks[i].wordLength =
update_media_clock(ptp_svr, i, media_clocks[i], clk_time,
CLOCK_RECOVERY_PERIOD);
Previously media_clocks would conservatively be consider as written by the
RHS since it is passed by non const reference. It is also written on the
LHS of the assignment. This is invalid according to the XC spec.
The 11.11.0 tools don't spot this but future versions will.
media_clock_server.c contains the following call:
media_clocks[i].wordLength = update_media_clock(ptp_svr, i, media_clocks[i], clk_time, CLOCK_RECOVERY_PERIOD);
Previously media_clocks would conservatively be consider as written by the RHS since it is passed by non const reference. It is also written on the LHS of the assignment. This is invalid according to the XC spec. The 11.11.0 tools don't spot this but future versions will.