1
1

Merge pull request #4031 from rhc54/topic/touchups

Silence some compile-time warnings. Update scripts now that AUTHORS is gone
Этот коммит содержится в:
Ralph Castain 2017-08-04 22:11:56 -06:00 коммит произвёл GitHub
родитель 11f04094db d1b7c3d8d5
Коммит c15df97cc2
5 изменённых файлов: 9 добавлений и 12 удалений

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

@ -57,7 +57,7 @@ my @exts = qw(.h .c);
# Find the top-level OMPI source tree dir # Find the top-level OMPI source tree dir
my $start = cwd(); my $start = cwd();
my $top = $start; my $top = $start;
while (! -f "$top/AUTHORS") { while (! -f "$top/HACKING") {
chdir(".."); chdir("..");
$top = cwd(); $top = cwd();
die "Can't find top-level directory" die "Can't find top-level directory"

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

@ -53,7 +53,7 @@ sub quiet_print {
# Find the top-level source tree dir # Find the top-level source tree dir
my $start = cwd(); my $start = cwd();
my $top = $start; my $top = $start;
while (! -f "$top/AUTHORS") { while (! -f "$top/HACKING") {
chdir(".."); chdir("..");
$top = cwd(); $top = cwd();
die "Can't find top-level directory" die "Can't find top-level directory"

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

@ -165,6 +165,8 @@ OPAL_DECLSPEC int opal_hwloc_base_get_topology(void);
*/ */
OPAL_DECLSPEC int opal_hwloc_base_set_topology(char *topofile); OPAL_DECLSPEC int opal_hwloc_base_set_topology(char *topofile);
OPAL_DECLSPEC int opal_hwloc_base_filter_cpus(hwloc_topology_t topo);
/** /**
* Free the hwloc topology. * Free the hwloc topology.
*/ */

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

@ -275,8 +275,6 @@ int opal_hwloc_base_get_topology(void)
int rc2, rc3, fd; int rc2, rc3, fd;
uint64_t addr, *aptr, size, *sptr; uint64_t addr, *aptr, size, *sptr;
char *shmemfile; char *shmemfile;
hwloc_obj_t root;
opal_hwloc_topo_data_t *sum;
#endif #endif
OPAL_OUTPUT_VERBOSE((2, opal_hwloc_base_framework.framework_output, OPAL_OUTPUT_VERBOSE((2, opal_hwloc_base_framework.framework_output,

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

@ -549,7 +549,6 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
{ {
unsigned long biggestbegin = 0; unsigned long biggestbegin = 0;
unsigned long biggestsize = 0; unsigned long biggestsize = 0;
unsigned long prevbegin = 0;
unsigned long prevend = 0; unsigned long prevend = 0;
orte_rtc_hwloc_vm_map_kind_t prevmkind = VM_MAP_OTHER; orte_rtc_hwloc_vm_map_kind_t prevmkind = VM_MAP_OTHER;
int in_libs = 0; int in_libs = 0;
@ -562,8 +561,8 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
} }
while (fgets(line, sizeof(line), file) != NULL) { while (fgets(line, sizeof(line), file) != NULL) {
unsigned long begin, end; unsigned long begin=0, end=0;
orte_rtc_hwloc_vm_map_kind_t mkind; orte_rtc_hwloc_vm_map_kind_t mkind=VM_MAP_OTHER;
if (!parse_map_line(line, &begin, &end, &mkind)) { if (!parse_map_line(line, &begin, &end, &mkind)) {
opal_output_verbose(90, orte_rtc_base_framework.framework_output, opal_output_verbose(90, orte_rtc_base_framework.framework_output,
@ -577,7 +576,6 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
switch (hkind) { switch (hkind) {
case VM_HOLE_BEGIN: case VM_HOLE_BEGIN:
assert(!prevbegin);
fclose(file); fclose(file);
return use_hole(0, begin, addrp, size); return use_hole(0, begin, addrp, size);
@ -635,7 +633,6 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
break; break;
} }
prevbegin = begin;
prevend = end; prevend = end;
prevmkind = mkind; prevmkind = mkind;