diff options
Diffstat (limited to 'modex.c')
-rw-r--r-- | modex.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -169,7 +169,10 @@ static ssize_t modex_write(struct file *file, const char *buffer, size_t length, if (test_mode) { printk(KERN_INFO "modex test mode about to abort\n"); /* cause an abort */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" x = *(int*)test_mode; +#pragma GCC diagnostic pop printk(KERN_INFO "modex didn't expect to get here! '%c' %d\n", x, x); } break; |