summaryrefslogtreecommitdiffhomepage
path: root/src/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 11:58:03 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:25 -0400
commitc713d8d019f7b0f9ed4a60912f440aca991d43c1 (patch)
tree949b58b49bc5087768cc8dbc3f65513b022ae5c5 /src/argv
parenta7c8d71acbd60c4b2f3ba63c47eba9c74fa4270d (diff)
downloadntapi-c713d8d019f7b0f9ed4a60912f440aca991d43c1.tar.bz2
ntapi-c713d8d019f7b0f9ed4a60912f440aca991d43c1.tar.xz
code maintenance: mark unused parameters.
Diffstat (limited to 'src/argv')
-rw-r--r--src/argv/ntapi_tt_argv_envp.c6
-rw-r--r--src/argv/ntapi_tt_array_utf16.c4
-rw-r--r--src/argv/ntapi_tt_array_utf8.c11
3 files changed, 21 insertions, 0 deletions
diff --git a/src/argv/ntapi_tt_argv_envp.c b/src/argv/ntapi_tt_argv_envp.c
index 939c771..586393e 100644
--- a/src/argv/ntapi_tt_argv_envp.c
+++ b/src/argv/ntapi_tt_argv_envp.c
@@ -119,6 +119,9 @@ int32_t __stdcall __ntapi_tt_parse_cmd_line_args_utf16(
unsigned int islash;
unsigned char quoted_state;
+ /* unused param */
+ (void)arg_flags;
+
/* check parameters for validity and alignment */
if ((!(uintptr_t)cmd_line) || (*cmd_line == 0))
/* we require at least one argument */
@@ -314,6 +317,9 @@ int32_t __stdcall __ntapi_tt_get_argv_envp_utf16(
uintptr_t * paligned;
wchar16_t * pboundary;
+ /* unused param */
+ (void)reserved;
+
/* init */
__internals = __ntapi_internals();
diff --git a/src/argv/ntapi_tt_array_utf16.c b/src/argv/ntapi_tt_array_utf16.c
index cc2d2f0..a86d5f8 100644
--- a/src/argv/ntapi_tt_array_utf16.c
+++ b/src/argv/ntapi_tt_array_utf16.c
@@ -37,6 +37,10 @@ int32_t __stdcall __ntapi_tt_array_copy_utf16(
ptrdiff_t ptrs;
size_t needed;
+ /* unused params */
+ (void)interpreter;
+ (void)optarg;
+
/* fallback */
dummy = 0;
wargv = wargv ? wargv : &dummy;
diff --git a/src/argv/ntapi_tt_array_utf8.c b/src/argv/ntapi_tt_array_utf8.c
index 8cea00b..364bceb 100644
--- a/src/argv/ntapi_tt_array_utf8.c
+++ b/src/argv/ntapi_tt_array_utf8.c
@@ -30,6 +30,10 @@ int32_t __stdcall __ntapi_tt_array_copy_utf8(
ptrdiff_t ptrs;
size_t needed;
+ /* unused params */
+ (void)interpreter;
+ (void)optarg;
+
/* fallback */
dummy = 0;
argv = argv ? argv : &dummy;
@@ -113,5 +117,12 @@ int32_t __stdcall __ntapi_tt_array_convert_utf8_to_utf16(
__in size_t buffer_len,
__out size_t * bytes_written)
{
+ (void)arrv;
+ (void)arra;
+ (void)base;
+ (void)buffer;
+ (void)buffer_len;
+ (void)bytes_written;
+
return NT_STATUS_SUCCESS;
}