about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2024-03-06 18:14:01 +0800
committerGitHub <noreply@github.com>2024-03-06 11:14:01 +0100
commit995fa013a63e171ee9f4689ebb555b8866d3d6fb (patch)
tree93c44fa8212581aec116ebb9e148717a7dbd7dc4 /src
parent4af1f56713963415fabe6b7853ac054ad28e4f51 (diff)
downloadbox64-995fa013a63e171ee9f4689ebb555b8866d3d6fb.tar.gz
box64-995fa013a63e171ee9f4689ebb555b8866d3d6fb.zip
Fixed a warning (#1335)
* Fixed some warnings

* Revert
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 5f374439..0100385c 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -1650,7 +1650,8 @@ void CreateCPUPresentFile(int fd)
 void CreateClocksourceFile(int fd)
 {
     size_t dummy;
-    write(fd, "tsc\n", strlen("tsc\n"));
+    dummy = write(fd, "tsc\n", strlen("tsc\n"));
+    (void)dummy;
 }
 
 #ifdef ANDROID