Package: iwyu Version: 3.3-2 Severity: normal I suspect this sort of thing will be hard to fix, since the tool is based on clang, which in turn is just parsing the system headers, and that's how the glibc headers are constructed.
But despite the fact that glibc defines getopt and friends (including optind and optarg) in a <getopt.h>, that is not the correct header to use unless you're actually using getopt_long. Including it will break portability. Instead, <unistd.h> is the correct header to include for the standard getopt/optarg/optind/opterr/optopt symbols. (Thank you for packaging a really neat tool!) -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages iwyu depends on: ii clang-3.3 1:3.3-9 ii libc6 2.17-92+b1 ii libgcc1 1:4.8.1-10 ii libstdc++6 4.8.1-10 iwyu recommends no packages. iwyu suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org