From 64eec30d22f1b821a021bfd4a8d54e169e84731b Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Sun, 28 Apr 2013 00:17:46 +0100 Subject: [PATCH] Avoid unused variable warning on non-Windows platforms. --- serialport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serialport.c b/serialport.c index 781fbde..c53a639 100644 --- a/serialport.c +++ b/serialport.c @@ -563,5 +563,7 @@ void sp_free_error_message(char *message) { #ifdef _WIN32 LocalFree(message); +#else + (void)message; #endif }