Skip to content

Commit 69f236b

Browse files
committed
linuxkm/linuxkm_wc_port.h: suppress -Wformat-nonliteral while including kernel headers (needed for kernel <=4.9).
1 parent 6a0be6a commit 69f236b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

linuxkm/linuxkm_wc_port.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
_Pragma("GCC diagnostic push");
227227

228228
/* we include all the needed kernel headers with these masked out. else
229-
* there are profuse warnings.
229+
* there are profuse warnings, especially on older kernels.
230230
*/
231231
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"");
232232
_Pragma("GCC diagnostic ignored \"-Wpointer-arith\"");
@@ -240,6 +240,7 @@
240240
_Pragma("GCC diagnostic ignored \"-Wtype-limits\"");
241241
_Pragma("GCC diagnostic ignored \"-Wswitch-enum\"");
242242
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\""); /* needed for kernel 4.14.336 */
243+
_Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\""); /* needed for kernel 4.9.282 */
243244

244245
#include <linux/kconfig.h>
245246

0 commit comments

Comments
 (0)