diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-04 20:25:49 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-04 20:25:49 +0100 |
| commit | b5b88d5f0dcb682df1ad80ac8939fcfc1f6671da (patch) | |
| tree | 119364db3c7e79adebeae21341671c557f7e7b7f | |
| parent | ae240340ab910a944bae5cdc39da55136ce31438 (diff) | |
Remove unused variable, fix "type issue" (#445, part 2)
This commit removes the unused variable as suggested in the discussion
of issue #445: "type issue in fluid/ExternalCodeEditor_WIN32.cxx"
... although the compiler would remove it anyway. ;-)
| -rw-r--r-- | fluid/ExternalCodeEditor_WIN32.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fluid/ExternalCodeEditor_WIN32.cxx b/fluid/ExternalCodeEditor_WIN32.cxx index 55d68ba57..704209ab4 100644 --- a/fluid/ExternalCodeEditor_WIN32.cxx +++ b/fluid/ExternalCodeEditor_WIN32.cxx @@ -492,9 +492,8 @@ void ExternalCodeEditor::reap_cleanup() { int ExternalCodeEditor::reap_editor(DWORD *pid_reaped) { if ( pid_reaped ) *pid_reaped = 0; if ( !is_editing() ) return -2; - DWORD err; DWORD msecs_wait = 50; // .05 sec - switch ( err = WaitForSingleObject(pinfo_.hProcess, msecs_wait) ) { + switch ( WaitForSingleObject(pinfo_.hProcess, msecs_wait) ) { case WAIT_TIMEOUT: { // process didn't reap, still running return 0; } |
