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

git: kernel: Use our offsetof() from <sys/types.h> instead of a local one.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Mar 2013 11:23:55 -0800 (PST)

commit 7198764d31519bcbb6ed931b4d9e7fe8e8fb0cf9
Author: Sascha Wildner <saw@online.de>
Date:   Sun Mar 3 20:23:26 2013 +0100

    kernel: Use our offsetof() from <sys/types.h> instead of a local one.
    
    On GCC 4.1 and later, our offsetof() winds up being __builtin_offsetof(),
    which is constant to GCC, so as a nice benefit this commit also fixes two
    GCC 4.7 warnings:
    
    .../dirhash.h:97:95: warning: variably modified 'dh_firstfree' at file scope
    .../vdevice.h:145:2: warning: variably modified '_ArrayTables' at file scope
    
    There are more offsetof() candidates I need to get to but since those two
    fix warnings, I commit them now.

Summary of changes:
 sys/dev/raid/hptmv/array.h   | 2 +-
 sys/dev/raid/hptmv/vdevice.h | 6 +++---
 sys/vfs/ufs/dir.h            | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7198764d31519bcbb6ed931b4d9e7fe8e8fb0cf9


-- 
DragonFly BSD source repository



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