]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
riscv64: Avoid warning about missing return value in stat wrapper
authorAndreas Schwab <schwab@suse.de>
Fri, 23 Jun 2023 12:25:27 +0000 (14:25 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 5 Mar 2025 23:06:26 +0000 (00:06 +0100)
m_libcfile.c: In function 'vgPlain_stat':
m_libcfile.c:594:1: error: control reaches end of non-void function [-Werror=return-type]
  594 | }
      | ^

coregrind/m_libcfile.c

index e132e765973f53eb0a2572f01b60800be4fae1d5..767f34522c9d40f76f3261016e5fcbfdc1d4307e 100644 (file)
@@ -557,6 +557,10 @@ SysRes VG_(stat) ( const HChar* file_name, struct vg_stat* vgbuf )
      return res;
    }
 #  endif
+#  if defined(VGP_riscv64_linux)
+   /* No fallback defined, statx syscall always exists. */
+   return res;
+#  endif
 #  elif defined(VGO_solaris)
    {
 #     if defined(VGP_x86_solaris)