Re: [Openvpn-devel] [PATCH 2/3] windows: define variable only where used

2021-05-02 Thread Arne Schwabe
Am 01.05.21 um 15:06 schrieb Antonio Quartulli: > From: Antonio Quartulli > > warn_used is a static variable but that is used only under certain > conditions. These conditions do not apply for Windows and therefore > mingw is spitting a warning for unused variable. > > Move variable declaration

[Openvpn-devel] [PATCH 2/3] windows: define variable only where used

2021-05-01 Thread Antonio Quartulli
From: Antonio Quartulli warn_used is a static variable but that is used only under certain conditions. These conditions do not apply for Windows and therefore mingw is spitting a warning for unused variable. Move variable declaration inside code block that uses it. Fixes: run_command.c: In fun