]> git.ipfire.org Git - thirdparty/kmod.git/commit
kmod: build: cure compiler warnings showing up externally
authorJan Engelhardt <jengelh@inai.de>
Sat, 16 Jun 2018 06:45:20 +0000 (08:45 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 18 Jun 2018 16:46:56 +0000 (09:46 -0700)
commit867da6fcfb003eb20ae54650f004382325813db6
tree3ccaaca7acf367006e3a42dfc16cfeef6d257472
parent499778492ab8e4e802368b968460dd26e838b201
kmod: build: cure compiler warnings showing up externally

When building a C source file with gcc-7 -Wshift-overflow=2, this warning
springs up:

libkmod.h: warning: result of "1 << 31" requires 33 bits to
represent, but "int" only has 32 bits [-Wshift-overflow=]

Change the two _KMOD_* identifiers to fit into 32 bits.
libkmod/libkmod.h