Hi Everyone,

Please find the below attached patch for review.

  *   This patch fixes function declarations in shmtest.c by converting 
definitions to

standard ANSI C prototypes to ensure compatibility with GCC 15.

Thanks & regards
Thirumalai Nagalingam

============
In-lined patch:

diff --git a/winsup/testsuite/winsup.api/shmtest.c 
b/winsup/testsuite/winsup.api/shmtest.c
index e0b7acf7d..2c6c74e7a 100644
--- a/winsup/testsuite/winsup.api/shmtest.c
+++ b/winsup/testsuite/winsup.api/shmtest.c
@@ -74,10 +74,7 @@ key_t    shmkey;

 size_t pgsize;

-int
-main(argc, argv)
-   int argc;
-   char *argv[];
+int main(int argc, char **argv)
 {
    struct sigaction sa;
    struct shmid_ds s_ds;
@@ -177,18 +174,14 @@ main(argc, argv)
    exit (1);
 }

-void
-sigsys_handler(signo)
-   int signo;
+void sigsys_handler(int signo)
 {

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

-void
-sigchld_handler(signo)
-   int signo;
+void sigchld_handler(int signo)
 {
    struct shmid_ds s_ds;
    int cstatus;
@@ -234,10 +227,7 @@ cleanup()
    tst_exit ();
 }

-void
-print_shmid_ds(sp, mode)
-   struct shmid_ds *sp;
-   mode_t mode;
+void print_shmid_ds(struct shmid_ds *sp, mode_t mode)
 {
    uid_t uid = geteuid();
    gid_t gid = getegid();
--
2.50.1.windows.1

Thanks & regards
Thirumalai N

Attachment: 0001-Cygwin-testsuite-fixes-for-compatibility-with-GCC-15.patch
Description: 0001-Cygwin-testsuite-fixes-for-compatibility-with-GCC-15.patch

Reply via email to