DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Mar 2013 09:52:26 -0800 (PST)

commit c7292832c33cc1840e70a1385e17aa1edeedadc1
Author: Sascha Wildner <saw@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]