You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2019/09/30 10:19:24 UTC
[commons-daemon] 03/08: Fix some -W4 compiler warnings
"unreferenced formal parameter"
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
commit 5a19b12a55edc0bac116bda970c9b494e3008b48
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Sep 30 10:31:27 2019 +0100
Fix some -W4 compiler warnings "unreferenced formal parameter"
---
src/native/windows/src/console.c | 14 ++++++++------
src/native/windows/src/gui.c | 1 +
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/native/windows/src/console.c b/src/native/windows/src/console.c
index 5ecb991..6fcc5af 100644
--- a/src/native/windows/src/console.c
+++ b/src/native/windows/src/console.c
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#include "apxwin.h"
#include "private.h"
@@ -44,7 +44,7 @@ typedef struct stAPXCONSOLE_LAYOUT {
/** Character size */
POINT ptCharSize;
/** Current Screen size */
- POINT ptScreenSize;
+ POINT ptScreenSize;
/** Font size */
INT nFontSize;
/** Caret size */
@@ -53,14 +53,14 @@ typedef struct stAPXCONSOLE_LAYOUT {
UINT nCaretBlinkTime;
/** Typeface name of the font (32 char max including the null terminator) */
TCHAR szFontName[32];
-
+
} stAPXCONSOLE_LAYOUT, *APXCONSOLE_LAYOUT;
typedef struct stAPXCONSOLE {
/** Application instance handle */
HINSTANCE hInstance;
/** Console Screen Buffer */
- TCHAR lpScreenBuffer;
+ TCHAR lpScreenBuffer;
/** The size of the Console Screen Buffer */
DWORD dwScreenBufferSize;
/** Main window Handle */
@@ -90,12 +90,14 @@ static BOOL __apxConsoleCallback(APXHANDLE hObject, UINT uMsg,
return FALSE;
switch (uMsg) {
case WM_CLOSE:
-
+
break;
default:
break;
}
return TRUE;
+ UNREFERENCED_PARAMETER(wParam);
+ UNREFERENCED_PARAMETER(lParam);
}
APXHANDLE
@@ -117,7 +119,7 @@ apxFreeConsoleHandle(APXHANDLE hConsole)
APXCONSOLE lpConsole = APXHANDLE_DATA(hConsole);
if (hConsole->dwType != APXHANDLE_TYPE_CONSOLE)
return FALSE;
-
+
return apxCloseHandle(hConsole);
}
diff --git a/src/native/windows/src/gui.c b/src/native/windows/src/gui.c
index d780d24..dafdb2d 100644
--- a/src/native/windows/src/gui.c
+++ b/src/native/windows/src/gui.c
@@ -394,6 +394,7 @@ static LRESULT CALLBACK __apxAboutDlgProc(HWND hDlg, UINT uMsg,
}
return FALSE;
+ UNREFERENCED_PARAMETER(lParam);
}
void apxAboutBox(HWND hWnd)