From: Martin Ling Date: Sat, 27 Apr 2013 23:17:46 +0000 (+0100) Subject: Avoid unused variable warning on non-Windows platforms. X-Git-Tag: libserialport-0.1.0~168 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=64eec30d22f1b821a021bfd4a8d54e169e84731b;p=libserialport.git Avoid unused variable warning on non-Windows platforms. --- 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 }