git: kernel/pf: Fix a bunch of gcc47 -Waddress warnings.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Mar 5 09:52:26 PST 2013


commit c7292832c33cc1840e70a1385e17aa1edeedadc1
Author: Sascha Wildner <saw at online.de>
Date:   Tue Mar 5 18:50:53 2013 +0100

    kernel/pf: Fix a bunch of gcc47 -Waddress warnings.
    
    The REASON_SET() macro is sometimes called with the address of a local
    u_short instead of a pointer passed to the macro's caller. In its NULL
    check, gcc47 detects that the address can never be NULL and issues a
    -Waddress warning which part of -Wall.
    
    To silence it, go via a u_short pointer in the macro. This fix is about
    as harmless as the "issue" gcc47 was warning about.
    
    While here, put two "x" parameters in parentheses.

Summary of changes:
 sys/net/pf/pfvar.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list