Skip to content

Commit bd44b69

Browse files
committed
update stan repo with minor fixes
1 parent 79c5585 commit bd44b69

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

stan/math/opencl/prim/normal_lcdf.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ const char opencl_normal_lcdf_ldncdf_impl[] = STRINGIFY(
156156
- 0.0170137970924080 * normal_lcdf_deriv_scaled_diff
157157
- 0.0100428567412041;
158158
}
159-
} else { normal_ldncdf = INFINITY; });
159+
} else {
160+
normal_ldncdf = INFINITY;
161+
});
160162
} // namespace internal
161163

162164
/** \ingroup opencl

stan/math/opencl/prim/std_normal_lcdf.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ const char opencl_std_normal_lcdf_dnlcdf[] = STRINGIFY(
164164
- 0.0170137970924080 * std_normal_lcdf_deriv_scaled_y
165165
- 0.0100428567412041;
166166
}
167-
} else { std_normal_lcdf_dnlcdf = INFINITY; });
167+
} else {
168+
std_normal_lcdf_dnlcdf = INFINITY;
169+
});
168170
} // namespace internal
169171

170172
/** \ingroup opencl

stan/math/prim/meta/VectorBuilderHelper.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ class VectorBuilderHelper<T1, true, false> {
4343
T1 x_;
4444

4545
public:
46-
explicit VectorBuilderHelper(size_t /* n */) : x_(0) {}
47-
T1& operator[](size_t /* i */) { return x_; }
46+
explicit VectorBuilderHelper(size_t n) : x_(0) { static_cast<void>(n); }
47+
T1& operator[](size_t i) {
48+
static_cast<void>(i);
49+
return x_;
50+
}
4851

4952
using type = T1;
5053

0 commit comments

Comments
 (0)