Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Reported by marko, happens when building with -Og and in various components, and likely to pop up again from time to time, so I suggest we keep this ticket open and ongoing as more patches get reviewed and pushed for this issue.
For example, instead of
if ( |
!(db_name = get_field(mem_root, table->field[0])) ||
|
!(table_name = get_field(mem_root, table->field[1])) ||
|
!(link_id = get_field(mem_root, table->field[2]))
|
)
|
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
|
fix with
if (!(db_name = get_field(...)) |
DBUG_RETURN(...);
|
if (!(table_name = get_field(...)) |
DBUG_RETURN(...);
|
if (!(link_id = get_field(...)) |
DBUG_RETURN(...);
|
Attachments
Issue Links
- relates to
-
MDEV-35073 -Wmaybe-uninitialized in result of spider_conn_first_link_idx
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Summary | clean up spider code patterns that could result in -wmaybe-uninitialized | fix -wmaybe-uninitialized warnings |
Component/s | Storage Engine - InnoDB [ 10129 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.4 [ 22408 ] |
Description |
Reported by [~marko].
Instead of {code:c++} if ( !(db_name = get_field(mem_root, table->field[0])) || !(table_name = get_field(mem_root, table->field[1])) || !(link_id = get_field(mem_root, table->field[2])) ) DBUG_RETURN(HA_ERR_OUT_OF_MEM); {code} do {code:c++} if (!(db_name = get_field(...)) DBUG_RETURN(...); if (!(table_name = get_field(...)) DBUG_RETURN(...); if (!(link_id = get_field(...)) DBUG_RETURN(...); {code} |
Reported by [~marko], happens when building with {-Og} and in various components, and likely to pop up again from time to time, so I suggest we keep this ticket open and ongoing as more patches get reviewed and pushed for this issue.
For example, instead of {code:c++} if ( !(db_name = get_field(mem_root, table->field[0])) || !(table_name = get_field(mem_root, table->field[1])) || !(link_id = get_field(mem_root, table->field[2])) ) DBUG_RETURN(HA_ERR_OUT_OF_MEM); {code} fix with {code:c++} if (!(db_name = get_field(...)) DBUG_RETURN(...); if (!(table_name = get_field(...)) DBUG_RETURN(...); if (!(link_id = get_field(...)) DBUG_RETURN(...); {code} |
Description |
Reported by [~marko], happens when building with {-Og} and in various components, and likely to pop up again from time to time, so I suggest we keep this ticket open and ongoing as more patches get reviewed and pushed for this issue.
For example, instead of {code:c++} if ( !(db_name = get_field(mem_root, table->field[0])) || !(table_name = get_field(mem_root, table->field[1])) || !(link_id = get_field(mem_root, table->field[2])) ) DBUG_RETURN(HA_ERR_OUT_OF_MEM); {code} fix with {code:c++} if (!(db_name = get_field(...)) DBUG_RETURN(...); if (!(table_name = get_field(...)) DBUG_RETURN(...); if (!(link_id = get_field(...)) DBUG_RETURN(...); {code} |
Reported by [~marko], happens when building with {{-Og}} and in various components, and likely to pop up again from time to time, so I suggest we keep this ticket open and ongoing as more patches get reviewed and pushed for this issue.
For example, instead of {code:c++} if ( !(db_name = get_field(mem_root, table->field[0])) || !(table_name = get_field(mem_root, table->field[1])) || !(link_id = get_field(mem_root, table->field[2])) ) DBUG_RETURN(HA_ERR_OUT_OF_MEM); {code} fix with {code:c++} if (!(db_name = get_field(...)) DBUG_RETURN(...); if (!(table_name = get_field(...)) DBUG_RETURN(...); if (!(link_id = get_field(...)) DBUG_RETURN(...); {code} |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Marko Mäkelä [ marko ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Marko Mäkelä [ marko ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Marko Mäkelä [ marko ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Summary | fix -wmaybe-uninitialized warnings | Fix g++-13 -Wmaybe-uninitialized warnings |
Assignee | Marko Mäkelä [ marko ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Marko Mäkelä [ marko ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Marko Mäkelä [ marko ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.4.34 [ 29625 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.5.25 [ 29626 ] | |
Fix Version/s | 10.6.18 [ 29627 ] | |
Fix Version/s | 10.11.8 [ 29630 ] | |
Fix Version/s | 11.0.6 [ 29628 ] | |
Fix Version/s | 11.1.5 [ 29629 ] | |
Fix Version/s | 11.2.4 [ 29631 ] | |
Fix Version/s | 11.4.2 [ 29633 ] |
Link |
This issue relates to |
The warnings are issued by GCC when building with -Og (optimize while trying to keep the executable debugger-friendly).