-
Notifications
You must be signed in to change notification settings - Fork 632
Closed
Labels
area/healthInvolves general matters of project configuration, health, maintenance, and similar concernsInvolves general matters of project configuration, health, maintenance, and similar concernskind/feature-requestNew feature or requestNew feature or request
Description
There are several common warning messages of c++ compilation
- unused variables
In this case, let's use std::ignore. For example, we can use:
std::ignore = some_function_return_value_is_not_used();
- signed comparison
Let's define the type of iteration variable in the for-loop specifically. For example,
for (std::vector<qsim::GateFused<QsimGate>>::size_type i = 0; i < gate_fused.size() ; i++) {
// gate_fused is the type of std::vector<qsim::GateFused<qsimGate>>
Metadata
Metadata
Assignees
Labels
area/healthInvolves general matters of project configuration, health, maintenance, and similar concernsInvolves general matters of project configuration, health, maintenance, and similar concernskind/feature-requestNew feature or requestNew feature or request