git: kernel - Work around bogus gcc errors

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 25 09:29:19 PDT 2018


commit c236fb6ea9212b1768f1e9cd786f7b154616f819
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 24 10:26:23 2018 -0700

    kernel - Work around bogus gcc errors
    
    * gcc warns of possibly uninitialized variables when using the
      builtins in two situations where the variables are, in fact,
      initialized for the code path.
    
    * Not really gcc's fault, the code was too complex for its
      analysis.
    
    * Zero the variables to fix the warning.

Summary of changes:
 sys/net/pf/pf_norm.c        | 3 +++
 sys/netgraph/l2tp/ng_l2tp.c | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c236fb6ea9212b1768f1e9cd786f7b154616f819


-- 
DragonFly BSD source repository


More information about the Commits mailing list