Displaying 4 results from an estimated 4 matches for "adjust_pvalues".
2025 May 09
2
array-bound error with GCC 13/14
...warnings like this recently, and if so, what have you
done about them? The warning did not appear in clang, nor with GCC
15.1.0 on CRAN's Fedora test service.
Firstly, the relevant code snippet:
/** Compute adjusted p-values using Benjamini/Hochberg method */
inline std::vector<double> adjust_pvalues(const std::vector<double> &
unadjusted) {
const size_t n_pvalue = unadjusted.size();
if (n_pvalue < 2) return unadjusted; /* <-- WARNING HERE */
std::vector<double> adjusted(n_pvalue, 0);
/* Do some other stuff */
return adjusted;
}
Secondly, the warni...
2025 May 12
1
array-bound error with GCC 13/14
...if so, what have you
> done about them? The warning did not appear in clang, nor with GCC
> 15.1.0 on CRAN's Fedora test service.
>
> Firstly, the relevant code snippet:
>
> /** Compute adjusted p-values using Benjamini/Hochberg method */
> inline std::vector<double> adjust_pvalues(const std::vector<double> &
> unadjusted) {
>
> const size_t n_pvalue = unadjusted.size();
> if (n_pvalue < 2) return unadjusted; /* <-- WARNING HERE */
>
> std::vector<double> adjusted(n_pvalue, 0);
> /* Do some other stuff */
>...
2025 May 09
1
array-bound error with GCC 13/14
? Fri, 9 May 2025 11:09:22 +1000
Stephen Wade <stephematician at gmail.com> ?????:
> inlined from ?std::vector<double> literanger::adjust_pvalues(const
> std::vector<double>&)? at ../src/literanger/utility_math.h:99:48:
> /usr/include/c++/13/bits/stl_algobase.h:437:30: warning: ?void*
> __builtin_memmove(void*, const void*, long unsigned int)? writing
> between 9 and 9223372036854775807 bytes into a region of size 8
>...
2025 May 09
1
array-bound error with GCC 13/14
...r package code.
Best,
Kevin
On Fri, May 9, 2025 at 6:18?AM Ivan Krylov via R-devel
<r-devel at r-project.org> wrote:
>
> ? Fri, 9 May 2025 11:09:22 +1000
> Stephen Wade <stephematician at gmail.com> ?????:
>
> > inlined from ?std::vector<double> literanger::adjust_pvalues(const
> > std::vector<double>&)? at ../src/literanger/utility_math.h:99:48:
> > /usr/include/c++/13/bits/stl_algobase.h:437:30: warning: ?void*
> > __builtin_memmove(void*, const void*, long unsigned int)? writing
> > between 9 and 9223372036854775807 bytes into a...