Skip to content

Fix warnings of c++ compilation #475

@jaeyoo

Description

@jaeyoo

There are several common warning messages of c++ compilation

  1. unused variables

In this case, let's use std::ignore. For example, we can use:

std::ignore = some_function_return_value_is_not_used();
  1. 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 concernskind/feature-requestNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions