From 995fa013a63e171ee9f4689ebb555b8866d3d6fb Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Wed, 6 Mar 2024 18:14:01 +0800 Subject: Fixed a warning (#1335) * Fixed some warnings * Revert --- src/wrapped/wrappedlibc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit 1.4.1