mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 12:50:06 +01:00
Only use GCC pragma on GCC
Signed-off-by: Michael Forney <mforney@mforney.org>
This commit is contained in:
parent
2f300eb6b5
commit
1f1bd4e2ce
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ def print_map(bits):
|
|||
print("#if __clang__")
|
||||
print("#pragma clang diagnostic push")
|
||||
print("#pragma clang diagnostic ignored \"-Winitializer-overrides\"")
|
||||
print("#else")
|
||||
print("#elif __GNUC__")
|
||||
print("#pragma GCC diagnostic push")
|
||||
print("#pragma GCC diagnostic ignored \"-Woverride-init\"")
|
||||
print("#endif")
|
||||
|
|
@ -104,7 +104,7 @@ def print_map(bits):
|
|||
print("};")
|
||||
print("#if __clang__")
|
||||
print("#pragma clang diagnostic pop /* \"-Winitializer-overrides\" */")
|
||||
print("#else")
|
||||
print("#elif __GNUC__")
|
||||
print("#pragma GCC diagnostic pop /* \"-Woverride-init\" */")
|
||||
print("#endif");
|
||||
print("")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue