forked from gap-system/gap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: avoid compiler warnings in some kernel extensions
Kernel extensions which don't use compiler options to turn off certain warnings may see a bunch of them caused by conversion between different kinds of function pointers, which in general can indeed indicate a bug, but here is *really* correct. We silence these for good by first casting to `void *` which is always legal. Also, when compiling with C++, disable a `#pragma` we use to temporarily silence the warning issued by `-Wstrict-prototypes`, as this warning is not supported in C++ and so trying to disable it can cause a warning by itself.
- Loading branch information
Showing
3 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters