projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77fa104
)
Eliminate 'assigned value never used' compiler warning in test_cpp WinMain
author
Ivan Maidanski
<ivmai@mail.ru>
Thu, 6 Dec 2018 08:23:52 +0000
(11:23 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Thu, 6 Dec 2018 08:23:52 +0000
(11:23 +0300)
* tests/test_cpp.cc [(MSWIN32 && !__MINGW32__ || MSWINCE)
&& !NO_WINMAIN_ENTRY] (WinMain): Remove first argv[argc]=cmd (when cmd
points to a space or tab character).
tests/test_cpp.cc
patch
|
blob
|
history
diff --git
a/tests/test_cpp.cc
b/tests/test_cpp.cc
index
176b526
..
fe7244b
100644
(file)
--- a/
tests/test_cpp.cc
+++ b/
tests/test_cpp.cc
@@
-270,7
+270,6
@@
void* Undisguise( GC_word i ) {
argv[argc] = NULL;
break;
}
- argv[argc] = cmd;
for (; *cmd != '\0'; cmd++) {
if (*cmd != ' ' && *cmd != '\t')
break;