Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v6]

2025-04-23 Thread Julian Waters
On Thu, 23 Jan 2025 05:37:29 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v6]

2025-03-26 Thread Julian Waters
On Thu, 23 Jan 2025 05:37:29 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-28 Thread Alexey Ivanov
On Fri, 24 Jan 2025 20:36:20 GMT, Alexey Ivanov wrote: >> I wonder if this falls into the category of "Can be used in a debugger" like >> Alex mentioned above, if not I'll remove it > > I see no reason to keep it. > > If it's needed during debugging, there are many ways to find the handle. > >

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-28 Thread Alexey Ivanov
On Fri, 24 Jan 2025 20:34:26 GMT, Alexey Ivanov wrote: >> src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp line 364: >> >>> 362: } >>> 363: >>> 364: int regDeleteValue(HKEY hFamilyKey, LPCWSTR lpSubKey) >> >> There's one more memory leak: >> >> https://github.com/openjdk/jdk/blob/

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-28 Thread Alexey Ivanov
On Fri, 24 Jan 2025 20:13:26 GMT, Alexey Ivanov wrote: >> By the above statement are you referring to the lines 336 to 341? I'll admit >> I'm a little lost for this one > > I'll submit a new bug to address this problem. > > It's not just a matter of an unused variables, it's the logic error: if

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-24 Thread Alexey Ivanov
On Thu, 23 Jan 2025 05:49:47 GMT, Julian Waters wrote: >> src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp line >> 561: >> >>> 559: tvis.item = tvi; >>> 560: >>> 561: /* HTREEITEM treeNodeItem = */ TreeView_InsertItem(treeWnd, >>> &tvis); >> >> Since it's

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-24 Thread Alexey Ivanov
On Tue, 21 Jan 2025 13:42:05 GMT, Alexey Ivanov wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCal

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-24 Thread Alexey Ivanov
On Thu, 23 Jan 2025 05:50:29 GMT, Julian Waters wrote: >> src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp line >> 261: >> >>> 259: GetClientRect(hWnd, &rcClient); >>> 260: // hwndEdit = >>> 261:CreateWindow("Edit", >> >> The edit control is

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-24 Thread Alexey Ivanov
On Thu, 23 Jan 2025 05:46:29 GMT, Julian Waters wrote: >> src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp line 334: >> >>> 332: TCHAR dataBuffer[DEFAULT_ALLOC]; >>> 333: TCHAR *data = dataBuffer; >>> 334: // bool freeData = false; >> >> This should be set to `t

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-22 Thread Julian Waters
On Tue, 21 Jan 2025 14:33:57 GMT, Alexey Ivanov wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCal

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-22 Thread Julian Waters
On Tue, 21 Jan 2025 13:40:42 GMT, Alexey Ivanov wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCal

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-22 Thread Julian Waters
On Tue, 21 Jan 2025 21:18:27 GMT, Alexey Ivanov wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCal

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-22 Thread Julian Waters
On Tue, 21 Jan 2025 13:43:17 GMT, Alexey Ivanov wrote: >> Will do, thanks > > I agree `retval` was probably used as a return value of the function; now > there are explicit `return` statements. I'll remove retval in a moment - PR Review Comment: https://git.openjdk.org/jdk/pull/21

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v6]

2025-01-22 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-21 Thread Alexey Ivanov
On Tue, 21 Jan 2025 00:34:39 GMT, Julian Waters wrote: >> src/jdk.accessibility/windows/native/bridge/AccessBridgeCalls.c line 233: >> >>> 231: return TRUE; >>> 232: } >>> 233: ((void) error); >> >> Not sure why do we need it. I mean there is a value assignment befor

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-21 Thread Alexey Ivanov
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-20 Thread Julian Waters
On Mon, 20 Jan 2025 23:35:33 GMT, Alexander Zuev wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCa

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-20 Thread Julian Waters
On Mon, 20 Jan 2025 23:35:23 GMT, Alexander Zuev wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCa

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-20 Thread Julian Waters
On Mon, 20 Jan 2025 23:18:41 GMT, Alexander Zuev wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'openjdk:master' into accessibility >> - Cast to void in AccessBridgeCa

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-20 Thread Alexander Zuev
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-20 Thread Alexander Zuev
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-15 Thread Julian Waters
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-09 Thread Julian Waters
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-07 Thread Julian Waters
On Tue, 7 Jan 2025 09:56:11 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2025-01-07 Thread Julian Waters
On Tue, 19 Nov 2024 17:58:59 GMT, Phil Race wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >> commits

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v5]

2025-01-07 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v4]

2025-01-07 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-12-17 Thread Julian Waters
On Tue, 19 Nov 2024 17:58:59 GMT, Phil Race wrote: >> Julian Waters has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >> commits

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v3]

2024-12-02 Thread Julian Waters
On Wed, 20 Nov 2024 05:41:58 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v3]

2024-11-22 Thread Julian Waters
On Wed, 20 Nov 2024 05:41:58 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-19 Thread Julian Waters
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v3]

2024-11-19 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-19 Thread Julian Waters
On Tue, 19 Nov 2024 17:58:59 GMT, Phil Race wrote: > There's not much I like about this PR. I think it would be better to withdraw > it and submit a bug against A11Y for people to look at what should really be > done about these cases. Which could include "do nothing". Thanks for taking a look

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-19 Thread Phil Race
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-12 Thread Julian Waters
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-08 Thread Julian Waters
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-11-03 Thread Julian Waters
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-10-29 Thread Julian Waters
On Sun, 27 Oct 2024 06:24:49 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility [v2]

2024-10-26 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

RFR: 8342870: Errors related to unused code on Windows after 8339120 in accessibility

2024-10-22 Thread Julian Waters
After 8339120, gcc began catching many different instances of unused code in the Windows specific codebase. Some of these seem to be bugs. I've taken the effort to mark out all the relevant globals and locals that trigger the unused warnings and addressed all of them by commenting out the code a