From 66c648e5e03f61e7675b6a3f18c4f00ac7b8a5b8 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 1 Oct 2020 12:05:42 +0100 Subject: [PATCH] Remove unused variable --- core/fmt/fmt.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 9e4d509df..5177468a0 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -85,7 +85,7 @@ fprint :: proc(fd: os.Handle, args: ..any, sep := " ") -> int { data: [DEFAULT_BUFFER_SIZE]byte; flush_data := Flush_Data{handle=fd}; buf := fmt_file_builder(data[:], &flush_data); - res := sbprint(buf=&buf, args=args, sep=sep); + _ = sbprint(buf=&buf, args=args, sep=sep); strings.flush_builder(&buf); return flush_data.bytes_written; } @@ -94,7 +94,7 @@ fprintln :: proc(fd: os.Handle, args: ..any, sep := " ") -> int { data: [DEFAULT_BUFFER_SIZE]byte; flush_data := Flush_Data{handle=fd}; buf := fmt_file_builder(data[:], &flush_data); - res := sbprintln(buf=&buf, args=args, sep=sep); + _ = sbprintln(buf=&buf, args=args, sep=sep); strings.flush_builder(&buf); return flush_data.bytes_written; } @@ -102,7 +102,7 @@ fprintf :: proc(fd: os.Handle, fmt: string, args: ..any) -> int { data: [DEFAULT_BUFFER_SIZE]byte; flush_data := Flush_Data{handle=fd}; buf := fmt_file_builder(data[:], &flush_data); - res := sbprintf(&buf, fmt, ..args); + _ = sbprintf(&buf, fmt, ..args); strings.flush_builder(&buf); return flush_data.bytes_written; }