mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Fixing a warning in MSVC (this is also a test commit)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4fd448712
commit
17da6e7ad8
@ -46,7 +46,7 @@ int save_arguments(int argc, const char **argv) {
|
|||||||
* what to do with it.
|
* what to do with it.
|
||||||
*/
|
*/
|
||||||
const char *Arg = argv[1];
|
const char *Arg = argv[1];
|
||||||
memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
memmove((char**)&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
||||||
--argc;
|
--argc;
|
||||||
|
|
||||||
if (!strcmp(Arg, "-llvmprof-output")) {
|
if (!strcmp(Arg, "-llvmprof-output")) {
|
||||||
@ -54,7 +54,7 @@ int save_arguments(int argc, const char **argv) {
|
|||||||
puts("-llvmprof-output requires a filename argument!");
|
puts("-llvmprof-output requires a filename argument!");
|
||||||
else {
|
else {
|
||||||
OutputFilename = strdup(argv[1]);
|
OutputFilename = strdup(argv[1]);
|
||||||
memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
memmove((char**)&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
||||||
--argc;
|
--argc;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user