Package: libext2fs-dev
Version: 1.47.1-1
Severity: minor
X-Debbugs-Cc: atzli...@sina.com

Hi,

   When package e2tools build in sid, I see two [-Wunused-parameter] warning:
in buildlog:

gcc -DHAVE_CONFIG_H -I.  -I./src -I/usr/include/ext2fs -I/usr/include/et  
-I/usr/include/et  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security --std=gnu99 -pedantic 
-Wall -Wextra -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -c -o 
src/e2tools-e2tools-toolmap.o `test -f 'src/e2tools-toolmap.c' || echo 
'./'`src/e2tools-toolmap.c
In file included from src/e2tool-e2ln.h:12,
                 from src/e2tools-toolmap.c:5:
/usr/include/ext2fs/ext2fs.h: In function ‘__encode_extra_time’:
/usr/include/ext2fs/ext2fs.h:588:48: warning: unused parameter ‘seconds’ 
[-Wunused-parameter]
  588 | static inline __u32 __encode_extra_time(time_t seconds, __u32 nsec)
      |                                         ~~~~~~~^~~~~~~
/usr/include/ext2fs/ext2fs.h: In function ‘__decode_extra_sec’:
/usr/include/ext2fs/ext2fs.h:598:63: warning: unused parameter ‘extra’ 
[-Wunused-parameter]
  598 | static inline time_t __decode_extra_sec(time_t seconds, __u32 extra)
      |                                                         ~~~~~~^~~~~

The e2tools whole buildlog can visit in:
https://buildd.debian.org/status/fetch.php?pkg=e2tools&arch=amd64&ver=0.1.2-1&stamp=1726464393&raw=0

These warnings are not appear in e2fsprogs  | 1.47.0-2 | stable.

The code is come from this commit:

commit ca8bc9240a00665dd4c96de350e610add8543a08
Author: Andreas Dilger <adil...@dilger.ca>
Date:   Tue Sep 26 23:40:16 2023 -0600

    Add post-2038 timestamp support to e2fsprogs

I hope these [-Wunused-parameter] warning: can fix.

Regards,

xiao sheng wen
-- System Information:
Release:        12.7.1
Codename:       bookworm
Architecture: x86_64

Kernel: Linux 6.10.9-rt-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), 
LANGUAGE=zh_CN:zh
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

libext2fs-dev recommends no packages.

Versions of packages libext2fs-dev suggests:
pn  doc-base  <none>

-- no debconf information

Reply via email to