Skip to content

-Wmacro-redefined warning with SW_MAX and Linux 6.16 headers #898

@correctmost

Description

@correctmost
  • Device name: N/A

  • Device model identifier: N/A

  • libwacom version: 3c2df35 compiled on Arch Linux

  • I understand that libwacom does not affect whether the device works (see Troubleshooting)

Bug description

I see the following warning when compiling with Linux 6.16 headers:

[11/20] Compiling C object libwacom.so.9.0.0.p/libwacom_libwacom-database.c.o
In file included from ../libwacom/libwacom-database.c:34:
../include/linux/input-event-codes.h:927:9: warning: 'SW_MAX' macro redefined [-Wmacro-redefined]
  927 | #define SW_MAX                  0x10
      |         ^
/usr/include/linux/input-event-codes.h:929:9: note: previous definition is here
  929 | #define SW_MAX                  0x11
      |         ^
1 warning generated.

Related commit: torvalds/linux@67890d5

Version info

  • 3c2df35 compiled on Arch Linux
  • linux 6.15.9.arch1-1
  • linux-api-headers 6.16-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions