Page MenuHomeFreeBSD

[BHND] Union should be named according to C99. It allows to compile code under MIPS
AbandonedPublic

Authored by mizhka on Mar 16 2016, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 9:12 AM
Unknown Object (File)
Feb 10 2024, 8:50 PM
Unknown Object (File)
Jan 11 2024, 9:53 AM
Unknown Object (File)
Dec 21 2023, 2:38 AM
Unknown Object (File)
Dec 20 2023, 12:42 AM
Unknown Object (File)
Sep 6 2023, 10:09 AM
Unknown Object (File)
Aug 18 2023, 5:52 AM
Unknown Object (File)
Jul 25 2023, 7:04 AM
Subscribers

Details

Summary

Unnamed unions are allowed in C11, but it's a pity that cross-compiler for MIPS is GCC4.2.1, which doesn't support C11. This patch add name for the only union.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mizhka retitled this revision from to [BHND] Union should be named according to C99. It allows to compile code under MIPS.
mizhka updated this object.
mizhka edited the test plan for this revision. (Show Details)
mizhka added reviewers: landon_landonf.org, adrian.
mizhka set the repository for this revision to rS FreeBSD src repository - subversion.

Other than the minor /**, looks good to me.

sys/dev/bhnd/bhndb/bhndb.h
83

Should remove the ** (double asterisk) here; that marks the comment as API documentation when parsed by doxygen/libclang.

sys/dev/bhnd/bhndb/bhndb.h
84

Do you need both the union name and the field name?