]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: Remove ioperm declare as it causes nested extern declare warning
authorZhaoming Luo <zhmingluo@163.com>
Mon, 9 Dec 2024 02:11:54 +0000 (10:11 +0800)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 10:42:18 +0000 (11:42 +0100)
commit5763e74d3cea008c31bfd48bc88660a1a32ecfa6
tree1989bd40c2f0b33bfbacf9a7a116034c803461fb
parent362912ce8fc617a157fd8505d3ee46a0be94a822
hwclock: Remove ioperm declare as it causes nested extern declare warning

The extern declaration causes the following warning:

```
  CC       sys-utils/hwclock-hwclock-cmos.o
sys-utils/hwclock-cmos.c: In function 'i386_iopl':
sys-utils/hwclock-cmos.c:356:20: warning: nested extern declaration of 'ioperm' [-Wnested-externs]
  356 |         extern int ioperm(unsigned long from, unsigned long num, int turn_on);
      |                    ^~~~~~
sys-utils/hwclock-cmos.c:356:20: warning: redundant redeclaration of 'ioperm' [-Wredundant-decls]
In file included from sys-utils/hwclock-cmos.c:68:
/usr/include/i386-gnu/sys/io.h:29:12: note: previous declaration of 'ioperm' with type 'int(long unsigned int,  long unsigned int,  int)'
   29 | extern int ioperm (unsigned long int __from, unsigned long int __num,
      |            ^~~~~~
  CCLD     hwclock
```
sys-utils/hwclock-cmos.c