]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Solaris: compiler warnings and one regtest compile error
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 18 Mar 2026 19:36:46 +0000 (20:36 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 18 Mar 2026 19:36:46 +0000 (20:36 +0100)
coregrind/m_syswrap/syswrap-solaris.c
none/tests/solaris/context_link.c

index d255d4f968f081707a68607dd4c263534c4a1436..3a8e691e2b9aa293a1a9134e7a2709d3e1d3a1a5 100644 (file)
@@ -1251,7 +1251,7 @@ PRE(sys_spawn)
                   VKI_POSIX_SPAWN_WAITPID_NP    | VKI_POSIX_SPAWN_NOEXECERR_NP);
                if (rem != 0) {
                   VG_(unimplemented)("Support for spawn() with attributes flag "
-                                     "%#x.", sap->sa_psflags);
+                                     "%#x.", (unsigned)sap->sa_psflags);
                }
             }
          }
@@ -1619,7 +1619,7 @@ PRE(sys_spawn)
    VG_(free)(argenv);
 
    if (SUCCESS) {
-      PRINT("   spawn: process %d spawned child %ld\n", VG_(getpid)(), RES);
+      PRINT("   spawn: process %d spawned child %lu\n", VG_(getpid)(), RES);
    }
 
 exit:
@@ -1758,7 +1758,7 @@ static Bool handle_cmdline_open(SyscallStatus *status, const HChar *filename)
    HChar name[VKI_PATH_MAX];    // large enough
    VG_(sprintf)(name, "/proc/%d/cmdline", VG_(getpid)());
 
-   if (!VG_STREQ(filename, name) && !VG_STREQ(filename, "/proc/self/cmdline"))
+   if ((VG_(strcmp)(filename, name)!=0) && (VG_(strcmp)(filename, "/proc/self/cmdline")!=0))
       return False;
 
    SysRes sres = VG_(dup)(VG_(cl_cmdline_fd));
index 6d2f457a2c7407cb3829fe427a6117c24c3cddf3..21571c9624d1b3b3a666c9a84fec2b03af3ababa 100644 (file)
@@ -28,7 +28,7 @@ int main(void)
    uc.uc_stack.ss_size = sizeof(stack);
 
    /* Call print_value(). */
-   makecontext(&uc, print_value, 1, 42);
+   makecontext(&uc, (void(*)())print_value, 1, 42);
    setcontext(&uc);
 
    /* This code should not be reached. */