mirror of
https://github.com/systemd/systemd.git
synced 2026-07-14 19:40:32 +00:00
macro: introduce nice macro for disabling -Wmissing-prototypes warnigs
This commit is contained in:
@@ -1046,8 +1046,7 @@ static PyModuleDef module = {
|
||||
static bool initialized = false;
|
||||
#endif
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||
DISABLE_WARNING_MISSING_PROTOTYPES;
|
||||
|
||||
PyMODINIT_FUNC
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
@@ -1110,4 +1109,4 @@ init_reader(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
REENABLE_WARNING;
|
||||
|
||||
Reference in New Issue
Block a user