Skip to content

Commit

Permalink
Remove warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisTM committed Jun 5, 2024
1 parent be67ed6 commit 788f6e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/group_param_usage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ int main() {
Car car = Car(config.get_group("car"));
car.speed.set(1000);

printf("speed: %lld, horsepower %lld\n", car.speed.get(), car.horsepower.get());
printf("speed: %ld, horsepower %ld\n", car.speed.get(), car.horsepower.get());

// Avoid copies of large data. Note the `auto&`
printf("curve: ");
auto& motor_curve = car.motor_curve.get_ref();
for(int i = 0; i < motor_curve.size(); i++) {
printf("%lld ", motor_curve[i]);
printf("%ld ", motor_curve[i]);
}
printf("\n");

Expand Down
2 changes: 1 addition & 1 deletion include/cracon/cracon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class SharedFile : public File {
*/
void update() {
assert(config_ != nullptr);
config_->set<Type>(accessor_, data_);
(void) config_->set<Type>(accessor_, data_);
}

/**
Expand Down

0 comments on commit 788f6e3

Please sign in to comment.