Re: [PATCH RESEND libgpiod v2 13/18] dbus: add gpio-manager code
Thiago Macieira <[email protected]> Tue, 02 Jul 2024 15:40:13 +0200
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <1872050.dNmn5OnKVQ@tjmaciei-mobl5> |
On Tuesday 2 July 2024 11:19:46 CEST Emmanuele Bassi wrote: > There's no such recommendation anywhere, just a metric ton of code that has > been doing it since 1996 and gets copy-pasted anyway. Understood, but it already was UB in 1996. Past mistakes do not excuse insisting on it. > In practice, though, given the namespacing rules for any GLib-based code, > the possibility of conflict with anything the ISO WG14 working group comes > up with is virtually zero. The issue might be less with the WG14-defined symbols, but with GCC's own, because those would also start with "G". In this case, it also starts with the letter "G", but as Bartosz says, he's only following existing practice. So it stands to reason that other projects whose names do not start with "G" may do the same and run into problems later. Glib should not advise people to write UB code. Anyway, advice given.