HipDNN Windows Superbuild fails with:
core.cpp:284:12: error: unused function 'll_rocm_name_newer' [-Werror,-Wunused-function]
Cause. ll_rocm_name_newer is defined at core.cpp:284 outside any guard, but
both call sites (:367, :405) are inside #ifndef _WIN32 blocks, alongside the
<dirent.h>/opendir code they serve. On Windows the callers compile out and the
definition is left unused.
| script | purpose |
|---|---|
13_fix_windows_unused_function.patch |
the fix — wraps the definition in its own #ifndef _WIN32; applies cleanly with git apply -p1 |
14_repro_unused_function.sh |
7-line reproduction, no ROCm/LLVM needed |
15_scan_for_more.py |
scans core.cpp for the same pattern elsewhere — reports 0 after the patch |
Introduced in 6efd67eb; absent from 56006f38, f19a5b09, 5bb9126a.