On Tue, Jun 21, 2022 at 12:16:40PM +0200, Maciek Machnikowski wrote:
> @@ -544,6 +546,9 @@ static void update_clock(struct phc2sys_private *priv,
> struct clock *clock,
>
> offset += get_sync_offset(priv, clock);
>
> + if (priv->free_running)
> + goto report;
I think this causes:
/home/richard/git/linuxptp/phc2sys.c: In function ‘update_clock’:
/home/richard/git/linuxptp/phc2sys.c:499:2: error: ‘ppb’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
stats_add_value(clock->freq_stats, freq);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/richard/git/linuxptp/phc2sys.c:536:9: note: ‘ppb’ was declared here
double ppb;
^~~
cc1: all warnings being treated as errors
make: *** [<builtin>: phc2sys.o] Error 1
Thanks,
Richard
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel