mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
libctf: remove unused variable
This fixes the build with gcc 16 after the changes to -Wunused*[0]. [0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused Reviewed by: markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59537
This commit is contained in:
1 parent
076c9db51f
commit
8e75ea59b0
1 file changed
+1
-2
@@ -77,9 +77,8 @@ ctf_hash_compute(const char *key, size_t len)
|
||||
{
|
||||
ulong_t g, h = 0;
|
||||
const char *p, *q = key + len;
|
||||
size_t n = 0;
|
||||
|
||||
for (p = key; p < q; p++, n++) {
|
||||
for (p = key; p < q; p++) {
|
||||
h = (h << 4) + *p;
|
||||
|
||||
if ((g = (h & 0xf0000000)) != 0) {
|
||||
|
||||
Reference in new issue
Block a user