summaryrefslogtreecommitdiff
path: root/modex.c
diff options
context:
space:
mode:
Diffstat (limited to 'modex.c')
-rw-r--r--modex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modex.c b/modex.c
index 4e196d1..7f3ddf8 100644
--- a/modex.c
+++ b/modex.c
@@ -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;