Skip to content

Netatop fails to build with GCC-14 or Clang-17 #303

Description

@NHOrus

GCC-14 enabled errors on long-deprecated C features, like functions declared without prototype. Clang did it long time ago
netatop fails under this category:

/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1041:11: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1041 | gctaskexit()
      |           ^
      |            void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1075:11: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1075 | gcsockinfo()
      |           ^
      |            void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1285:11: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1285 | gctaskinfo()
      |           ^
      |            void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1358:13: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1358 | wipesockinfo()
      |             ^
      |              void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1386:13: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1386 | wipetaskinfo()
      |             ^
      |              void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1414:13: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1414 | wipetaskexit()
      |             ^
      |              void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1727:12: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1727 | init_module()
      |            ^
      |             void
/var/tmp/portage/sys-process/atop-2.10.0-r1/work/netatop-3.1/module/netatop.c:1828:15: error: a function declaration without a prototype is deprecated in all versions of C
      [-Werror,-Wstrict-prototypes]
 1828 | cleanup_module()
      |               ^
      |                void

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions