]> git.ipfire.org Git - thirdparty/tor.git/commit
hashx: Move Windows function within another ifdef
authorDavid Goulet <dgoulet@torproject.org>
Tue, 28 Jan 2025 18:27:14 +0000 (13:27 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 28 Jan 2025 18:28:29 +0000 (13:28 -0500)
commit644374f9cc9cd4ffc07af020ac9404c8d9d944ca
tree891b8db2f19c3c5f526161dfcef72a5583203bfc
parent99d13f7b5029b42901cf08b0f326fbf0a3be001b
hashx: Move Windows function within another ifdef

Function only used within the hugepage ifdef for Windows so move it there so we
avoid a unused function warning on our Windows CI:

src/ext/equix/hashx/src/virtual_memory.c:30:13: error: 'set_privilege' defined but not used [-Werror=unused-function]
   30 | static bool set_privilege(const char* pszPrivilege, BOOL bEnable) {
      |             ^~~~~~~~~~~~~

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/ext/equix/hashx/src/virtual_memory.c