mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
Fixing a warning in MSVC (this is also a test commit)
llvm-svn: 149844
This commit is contained in:
parent
9066fb5c43
commit
b97841e981
@ -46,7 +46,7 @@ int save_arguments(int argc, const char **argv) {
|
||||
* what to do with it.
|
||||
*/
|
||||
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;
|
||||
|
||||
if (!strcmp(Arg, "-llvmprof-output")) {
|
||||
@ -54,7 +54,7 @@ int save_arguments(int argc, const char **argv) {
|
||||
puts("-llvmprof-output requires a filename argument!");
|
||||
else {
|
||||
OutputFilename = strdup(argv[1]);
|
||||
memmove(&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
||||
memmove((char**)&argv[1], &argv[2], (argc-1)*sizeof(char*));
|
||||
--argc;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user