From: Aida Jonikienė aidas957@gmail.com
--- dlls/localspl/provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c index 26e9c66bea0..0fa0e711983 100644 --- a/dlls/localspl/provider.c +++ b/dlls/localspl/provider.c @@ -3072,7 +3072,7 @@ static void fill_builtin_form_info( BYTE **base, WCHAR **strings, const struct b DWORD size, DWORD *used ) { FORM_INFO_2W *info = *(FORM_INFO_2W**)base; - DWORD name_len = wcslen( form->name ) + 1, res_len = 0, keyword_len, total_size; + DWORD name_len = wcslen( form->name ) + 1, res_len = 0, keyword_len = 0, total_size; static const WCHAR dll_name[] = L"localspl.dll"; const WCHAR *resource;
This doesn't look necessary, the variable is only briefly used in a scope and doesn't seem to be possible to be used uninitialized?
On Fri Jan 26 08:34:06 2024 +0000, Rémi Bernon wrote:
This doesn't look necessary, the variable is only briefly used in a scope and doesn't seem to be possible to be used uninitialized?
MinGW GCC 13.1.0 on my Arch Linux system is complaining about this warning and so I have to fix it to make Wine compile with -Werror (this is the final warning in the upstream code so far; the rest are inside staging which I already prepared patches for but haven't sent them yet)
On Fri Jan 26 08:34:06 2024 +0000, Aida Jonikienė wrote:
MinGW GCC 13.1.0 on my Arch Linux system is complaining about this warning and so I have to fix it to make Wine compile with -Werror (this is the final warning in the upstream code so far; the rest are inside staging which I already prepared patches for but haven't sent them yet)
Move the variable declaration inside the scope perhaps then?
On Fri Jan 26 09:17:58 2024 +0000, Rémi Bernon wrote:
Move the variable declaration inside the scope perhaps then?
The `res_len` variable got the same initialization to 0 treatment in !1960 so I'm not sure :frog:
On Fri Jan 26 09:32:36 2024 +0000, Aida Jonikienė wrote:
The `res_len` variable got the same initialization to 0 treatment in !1960 so I'm not sure :frog:
Oh yeah sorry it's actually used below, my search was not highlighting it for some reason.
This merge request was approved by Rémi Bernon.
This merge request was approved by Huw Davies.