From cc8a01b8a7f2796baaed83c68728b8f09dcb1d37 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 25 Jan 2016 22:23:15 +0100 Subject: [PATCH] removed unused length variable in dlerror() implementation for Windows in example/executable.c --- example/executable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/executable.c b/example/executable.c index b23da0b..2018166 100644 --- a/example/executable.c +++ b/example/executable.c @@ -47,9 +47,8 @@ static const char* dlerror(void) if (error) { static char message[1024]; - DWORD length; - length = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), message, sizeof(message), NULL); + FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), message, sizeof(message), NULL); return message; }