cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
https://mqt.readthedocs.io/projects/core
MIT License
62 stars 31 forks source link

🚨 fix shadowing compiler warnings #620

Closed burgholzer closed 5 months ago

burgholzer commented 5 months ago

Description

Fixes a couple of small shadowing compiler warnings that were introduced in a recent PR.

Checklist:

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.6%. Comparing base (386f5be) to head (dffc533). Report is 102 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620/graphs/tree.svg?width=650&height=150&src=pr&token=MqstsRKdqp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) ```diff @@ Coverage Diff @@ ## main #620 +/- ## ===================================== Coverage 91.6% 91.6% ===================================== Files 147 147 Lines 14714 14714 Branches 2361 2361 ===================================== Hits 13482 13482 Misses 1232 1232 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `91.3% <100.0%> (ø)` | | | [python](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `99.7% <ø> (ø)` | | | [Files with missing lines](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [include/mqt-core/operations/AodOperation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620?src=pr&el=tree&filepath=include%2Fmqt-core%2Foperations%2FAodOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9vcGVyYXRpb25zL0FvZE9wZXJhdGlvbi5ocHA=) | `91.6% <100.0%> (ø)` | | | [src/operations/AodOperation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/620?src=pr&el=tree&filepath=src%2Foperations%2FAodOperation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL29wZXJhdGlvbnMvQW9kT3BlcmF0aW9uLmNwcA==) | `100.0% <100.0%> (ø)` | |