Skip to content

Commit

Permalink
xpmem: Fix compilation warning
Browse files Browse the repository at this point in the history
low is set but not used.

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws authored and j-xiong committed Oct 24, 2024
1 parent 54d5444 commit 07254b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int ofi_xpmem_init(void)
char buffer[1024];
uintptr_t address_max = 0;
FILE *fh;
uintptr_t low, high;
uintptr_t high;
char *tmp;

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

0 comments on commit 07254b6

Please sign in to comment.