1
1

fix compiler warning and compiler error in totalview code...

This commit was SVN r8207.
Этот коммит содержится в:
Brian Barrett 2005-11-20 18:41:45 +00:00
родитель 8d96c21311
Коммит fee6409708

Просмотреть файл

@ -176,9 +176,10 @@ static int process(char *orig_line, char *basename, int argc, char **argv,
opal_argv_free(tmp_argv);
}
/* Replace @@ tokens */
/* Replace @@ tokens - line should never realistically be bigger
than MAX_INT, so just cast to int to remove compiler warning */
for (i = 0; i < strlen(line); ++i) {
for (i = 0; i < (int) strlen(line); ++i) {
tmp = NULL;
if (0 == strncmp(line + i, "@mpirun@", 8)) {
line[i] = '\0';
@ -263,7 +264,6 @@ void orte_run_debugger(char *basename, int argc, char *argv[])
if (NULL == lines[i]) {
opal_show_help("help-orterun.txt", "debugger-not-found", true);
free(str);
exit(1);
}
opal_argv_free(lines);