On Sun, Jul 24, 2022 at 05:46:56PM -0700, Richard Cochran wrote:
> 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

Sure thing! Fixed in V4.

Thanks
Maciek


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to