New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation warnings in re2 with -Wpedantic
#11917
Comments
@szarnyasg: Thanks for looking into it. In gcc14, there are even more warnings:
Check results: https://cran.r-project.org/web/checks/check_results_duckdb.html |
The first two issues are easily fixable, but found this comment: // Work around the bug affecting flexible array members in GCC 6.x (for x >= 1).
// (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70932)
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && __GNUC_MINOR__ >= 1
std::atomic<State*> next_[0]; // Outgoing arrows from State,
#else
std::atomic<State*> next_[]; // Outgoing arrows from State,
#endif So this seems intentional to work around a GCC bug? |
PR for first part is here: #11956 |
The |
second PR is here: #11978 |
@krlmlr do we have a CI run already that would have found those? |
Yes. Easiest when that PR is merged and vendored here. |
Fixed in upstream |
Looks super-green now: https://github.com/duckdb/duckdb-r/actions/runs/9162129815/job/25188491799 . Filed the clang-asan problem: #12142 . The atlas check is not a problem. I don't understand why valgrind still finds problems. Investigating. |
What happens?
Building duckdb v0.10.2 with
-Wpedantic
gives four warnings in re2:This affects the R package because CRAN checks this: https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/duckdb-00check.html
To Reproduce
Compile duckdb with gcc13 and
-Wpedantic
.OS:
Linux
DuckDB Version:
v0.10.2
DuckDB Client:
R
Full Name:
Kirill Müller
Affiliation:
cynkra GmbH
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a source build
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: