Skip to content

Commit 07254b6

Browse files
shijin-awsj-xiong
authored andcommitted
xpmem: Fix compilation warning
low is set but not used. Signed-off-by: Shi Jin <sjina@amazon.com>
1 parent 54d5444 commit 07254b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xpmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int ofi_xpmem_init(void)
6565
char buffer[1024];
6666
uintptr_t address_max = 0;
6767
FILE *fh;
68-
uintptr_t low, high;
68+
uintptr_t high;
6969
char *tmp;
7070

7171
fi_param_define(&core_prov, "xpmem_memcpy_chunksize", FI_PARAM_SIZE_T,
@@ -87,7 +87,7 @@ int ofi_xpmem_init(void)
8787
while (fgets(buffer, sizeof(buffer), fh)) {
8888
/* each line of /proc/self/maps starts with low-high in
8989
* hexidecimal (without a 0x) */
90-
low = strtoul(buffer, &tmp, 16);
90+
(void) strtoul(buffer, &tmp, 16);
9191
high = strtoul(tmp + 1, NULL, 16);
9292
if (address_max < high)
9393
address_max = high;

0 commit comments

Comments
 (0)