git: kernel/asr: Fix -Waddress on gcc47.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Mar 12 13:50:33 PDT 2013


commit a1f2c914b8cd6ce8baa22478c7c2d7b1b1288b6d
Author: Sascha Wildner <saw at online.de>
Date:   Tue Mar 12 21:31:20 2013 +0100

    kernel/asr: Fix -Waddress on gcc47.
    
    gcc47 was complaining about two cases where an address that could never
    be NULL was checked against NULL in the SG() macro. Work around it by
    using a pointer in between.

Summary of changes:
 sys/dev/raid/asr/asr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list