[systemd-devel] [PATCH] core: Remove unnecessary typedef

Henrik Grindal Bakken hgb at ifi.uio.no
Wed Apr 17 09:36:02 PDT 2013


Kay Sievers <kay at vrfy.org> writes:

> On Wed, Apr 17, 2013 at 6:08 PM, Henrik Grindal Bakken <hgb at ifi.uio.no> wrote:
>> ExecContext isn't used in this header file, and everything seems to
>> build just fine without this typedef.  The typedef doesn't really belong
>> here, and at least my gcc-4.4.6 gives an error on type redefined.
>
> Weird, this type of forward-declaration is a common pattern.

A closer look reveals that gcc warns in gcc-4.4, but not in gcc-4.7.


-- 
Henrik Grindal Bakken <hgb at ifi.uio.no>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963  02AF 9236 D25A 8D43 6E52


More information about the systemd-devel mailing list