Skip to content

Error building with clang 21.1.8 On Debian testing #1607

@fxlb

Description

@fxlb
  • This is not a security issue (See first line).

Debian testing (Forky)

uname -a

Linux ec0ffc8ba5c5 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64 GNU/Linux

clang --version

Debian clang version 21.1.8 (1+b1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin

CC=clang ./build.sh

[...]
$ make -s testprogs CFLAGS=-Werror
./valgrindtest.c:407:53: error: variable 'bad_fcode' is
      uninitialized when passed as a const pointer argument here
      [-Werror,-Wuninitialized-const-pointer]
  407 |         setsockopt(pcap_fd, SOL_SOCKET, SO_ATTACH_FILTER, &bad_fcode,
      |                                                            ^~~~~~~~~
1 error generated.
make[1]: *** [Makefile:158: valgrindtest] Error 1
make: *** [Makefile:561: testprogs] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions