Skip to content

Fix maybe-uninitialized warning#346

Merged
aut0 merged 1 commit into
accellera-official:mainfrom
rogerchang23424:fix-uninit
May 26, 2026
Merged

Fix maybe-uninitialized warning#346
aut0 merged 1 commit into
accellera-official:mainfrom
rogerchang23424:fix-uninit

Conversation

@rogerchang23424

Copy link
Copy Markdown
Contributor

Fix following warning

${cci_src}/cci/cfg/cci_param_typed.h: In member function ‘set_cci_value’:
${cci_src}/cci/cfg/cci_param_typed.h:760: error: ‘result’ may be used uninitialized [-Werror=maybe-uninitialized]
  760 |     value_type v = val.get<value_type>();
      |
${cci_src}/cci/core/cci_value.h:243: note: ‘result’ was declared here
  243 |   T result;
      |

Fix following warning
```
${cci_src}/cci/cfg/cci_param_typed.h: In member function ‘set_cci_value’:
${cci_src}/cci/cfg/cci_param_typed.h:760: error: ‘result’ may be used uninitialized [-Werror=maybe-uninitialized]
  760 |     value_type v = val.get<value_type>();
      |
${cci_src}/cci/core/cci_value.h:243: note: ‘result’ was declared here
  243 |   T result;
      |
```

Signed-off-by: Roger Chang <rogerycchang@google.com>
@aut0
aut0 merged commit aff6817 into accellera-official:main May 26, 2026
35 checks passed
@aut0

aut0 commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Thank you for your contribution :)
Feel free to join the WG meeting every other Tuesday. Your company is a member of Accellera.

@rogerchang23424
rogerchang23424 deleted the fix-uninit branch May 27, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants