-
Notifications
You must be signed in to change notification settings - Fork 356
Static analysis / memory fixes #4082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
32af3ff
6ae123f
d290537
1522dbc
9fbc3c9
e1c70c6
4eea0e0
0a29fe0
ff370eb
3a80fbd
c85e8a4
9cb24fe
9bb5c5d
b5e0be3
70a8d07
9c329f2
57d7c37
0a1cfb7
7ce46ea
a470fc3
1905443
2be2eb8
ec588b0
9ff45e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /* | ||
| * Copyright 2004-2025 the Pacemaker project contributors | ||
| * Copyright 2004-2026 the Pacemaker project contributors | ||
| * | ||
| * The version control history for this file may have further details. | ||
| * | ||
|
|
@@ -407,7 +407,10 @@ load_transforms_from_dir(const char *dir) | |
| g_hash_table_insert(transforms, version_s, list); | ||
|
|
||
| } else { | ||
| list = g_list_append(list, namelist[i]); | ||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wunused-result" | ||
| g_list_append(list, namelist[i]); | ||
|
clumens marked this conversation as resolved.
|
||
| #pragma GCC diagnostic pop | ||
| free(version_s); | ||
| } | ||
|
|
||
|
|
@@ -1067,6 +1070,7 @@ apply_upgrade(const xmlNode *input_xml, int schema_index, gboolean to_logs) | |
| } | ||
|
|
||
| // Final result document from upgrade pipeline needs private data | ||
| pcmk__assert(new_xml != NULL); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assertion is reasonable to have. The path to get here is a bit convoluted. If It might make more sense to pass |
||
| pcmk__xml_new_private_data((xmlNode *) new_xml->doc); | ||
|
|
||
| // Ensure result validates with its new schema | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.