Re: Windows build warnings
От | Tom Lane |
---|---|
Тема | Re: Windows build warnings |
Дата | |
Msg-id | 4173932.1637679789@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Windows build warnings (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
Список | pgsql-hackers |
Alvaro Herrera <alvherre@alvh.no-ip.org> writes: > Right ... the problem, as I understand, is that the syntax for > [[maybe_unused]] is different from what we can do with the current > pg_attribute_unused -- [[maybe_unused]] goes before the variable name. > We would need to define pg_attribute_unused macro (maybe have it take > the variable name and initializator value as arguments?), and also > define PG_USED_FOR_ASSERTS_ONLY in the same style. I've thought all along that PG_USED_FOR_ASSERTS_ONLY was making unwarranted assumptions about what the underlying syntax would be, and it seems I was right. Anyone want to look into what it'd take to change this? (It might be an idea to introduce a new macro with a slightly different name, so we don't have to touch every usage site right away.) regards, tom lane
В списке pgsql-hackers по дате отправления: