Fix minor warnings (#126)

- Unused variables
- signed vs. unsigned
- added -flto=auto
This commit is contained in:
Erik Fröjdh
2025-02-11 11:48:01 +01:00
committed by GitHub
parent 4c750cc3be
commit d86cb533c8
6 changed files with 12 additions and 7 deletions

View File

@ -22,8 +22,8 @@ uint16_t adc_sar_05_decode64to16(uint64_t input){
}
void adc_sar_05_decode64to16(NDView<uint64_t, 2> input, NDView<uint16_t,2> output){
for(size_t i = 0; i < input.shape(0); i++){
for(size_t j = 0; j < input.shape(1); j++){
for(int64_t i = 0; i < input.shape(0); i++){
for(int64_t j = 0; j < input.shape(1); j++){
output(i,j) = adc_sar_05_decode64to16(input(i,j));
}
}

View File

@ -13,9 +13,9 @@ DetectorGeometry update_geometry_with_roi(DetectorGeometry geo, aare::ROI roi) {
#endif
int pos_y = 0;
int pos_y_increment = 0;
for (size_t row = 0; row < geo.modules_y; row++) {
for (int row = 0; row < geo.modules_y; row++) {
int pos_x = 0;
for (size_t col = 0; col < geo.modules_x; col++) {
for (int col = 0; col < geo.modules_x; col++) {
auto &m = geo.module_pixel_0[row * geo.modules_x + col];
auto original_height = m.height;
auto original_width = m.width;