public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/113516] New: POLLPRI redefined on windows building ada
@ 2024-01-20 5:18 nightstrike at gmail dot com
2024-02-03 11:24 ` [Bug ada/113516] macro POLLPRI redefined during GNAT build ebotcazou at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: nightstrike at gmail dot com @ 2024-01-20 5:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113516
Bug ID: 113516
Summary: POLLPRI redefined on windows building ada
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: nightstrike at gmail dot com
CC: dkm at gcc dot gnu.org
Target Milestone: ---
g:r11-4313-gd08d481912b9a2 defined POLLPRI to zero on Windows, stating in the
commit message "Define POLLPRI as zero on Windows as it is not supported
there." However, it is defined on mingw-w64 targets, resulting in a build
warning:
/tmp/gcc/src/gcc-git/gcc/ada/s-oscons-tmplt.c:1871:9: warning: "POLLPRI"
redefined
1871 | #define POLLPRI 0
| ^~~~~~~
In file included from /tmp/gcc/src/gcc-git/gcc/ada/gsocket.h:83,
from /tmp/gcc/src/gcc-git/gcc/ada/s-oscons-tmplt.c:103:
/tmp/rt/mingw14/x86_64-w64-mingw32/include/winsock2.h:1182:9: note: this is the
location of the previous definition
1182 | #define POLLPRI 0x0400
| ^~~~~~~
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug ada/113516] macro POLLPRI redefined during GNAT build
2024-01-20 5:18 [Bug ada/113516] New: POLLPRI redefined on windows building ada nightstrike at gmail dot com
@ 2024-02-03 11:24 ` ebotcazou at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-02-03 11:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113516
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2024-02-03
Summary|POLLPRI redefined on |macro POLLPRI redefined
|windows building ada |during GNAT build
Status|UNCONFIRMED |NEW
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Macro (re)definitions should indeed by guarded properly.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-03 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-20 5:18 [Bug ada/113516] New: POLLPRI redefined on windows building ada nightstrike at gmail dot com
2024-02-03 11:24 ` [Bug ada/113516] macro POLLPRI redefined during GNAT build ebotcazou at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).