Skip to content

Commit

Permalink
Fix guard around alloc_hugetlb, fixes compile warning
Browse files Browse the repository at this point in the history
The warning was:
```
/home/rgommers/code/pixi-dev-scipystack/openblas/OpenBLAS/driver/others/memory.c: At top level:
/home/rgommers/code/pixi-dev-scipystack/openblas/OpenBLAS/driver/others/memory.c:2565:14: warning: 'alloc_hugetlb' defined but not used [-Wunused-function]
 2565 | static void *alloc_hugetlb(void *address){
      |              ^~~~~~~~~~~~~
```

The added define is the same as is already present in the TLS part of
`memory.c`. This follows up on OpenMathLibgh-4681.
  • Loading branch information
rgommers committed Dec 18, 2024
1 parent 48caf23 commit 765ad8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/others/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2538,7 +2538,7 @@ static void *alloc_shm(void *address){
}
#endif

#if defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS
#if ((defined ALLOC_HUGETLB) && (defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS))

static void alloc_hugetlb_free(struct release_t *release){

Expand Down

0 comments on commit 765ad8b

Please sign in to comment.