Skip to content

Commit 55a3b58

Browse files
thiru-mcwjon-turney
authored andcommitted
Cygwin: testsuite: fixes for compatibility with GCC 15
GCC 15 defaults to `-std=gnu23`, causing warnings in `testsuite` due to pre-ANSI C function declarations. This patch updates the function declarations to align with modern standards. Signed-off-by: Thirumalai Nagalingam <[email protected]>
1 parent ffa34d5 commit 55a3b58

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

winsup/testsuite/winsup.api/shmtest.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ key_t shmkey;
7575
size_t pgsize;
7676

7777
int
78-
main(argc, argv)
79-
int argc;
80-
char *argv[];
78+
main(int argc, char **argv)
8179
{
8280
struct sigaction sa;
8381
struct shmid_ds s_ds;
@@ -178,17 +176,15 @@ main(argc, argv)
178176
}
179177

180178
void
181-
sigsys_handler(signo)
182-
int signo;
179+
sigsys_handler(int signo)
183180
{
184181

185182
tst_brkm (TBROK, cleanup,
186183
"System V Shared Memory support is not present in the kernel");
187184
}
188185

189186
void
190-
sigchld_handler(signo)
191-
int signo;
187+
sigchld_handler(int signo)
192188
{
193189
struct shmid_ds s_ds;
194190
int cstatus;
@@ -235,9 +231,7 @@ cleanup()
235231
}
236232

237233
void
238-
print_shmid_ds(sp, mode)
239-
struct shmid_ds *sp;
240-
mode_t mode;
234+
print_shmid_ds(struct shmid_ds *sp, mode_t mode)
241235
{
242236
uid_t uid = geteuid();
243237
gid_t gid = getegid();

0 commit comments

Comments
 (0)