tech-userlevel archive

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

Re: Request for review: librefuse overhaul for supporting more filesystems



Am 13.01.2022 um 07:48 schrieb Roland Illig:

13.01.2022 04:18:36 Joerg Sonnenberger <joerg%bec.de@localhost>:

Specific remark here: try to avoid empty structures. They can
create a real hassle when interacting between C and C++ as that's
explicitly invalid for the latter.


Not only that, in standard C they are a syntax violation as well (see
C11 6.7.2.1). GCC supports them as an extension:
https://gcc.gnu.org/onlinedocs/gcc/Empty-Structures.html

Correction: Empty structures are a syntax violation in C, as stated
above. They are allowed in C++, as stated by the GCC documentation and
by C++ [gram.class.pre].


Home | Main Index | Thread Index | Old Index