Skip to content
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

Enable -Wextra #4875

Merged
merged 2 commits into from Oct 27, 2022
Merged

Enable -Wextra #4875

merged 2 commits into from Oct 27, 2022

Conversation

akuzm
Copy link
Member

@akuzm akuzm commented Oct 24, 2022

Our code mostly has warnings about assignment/comparison of int types of different signedness.

Disable-check: commit-count

@codecov
Copy link

codecov bot commented Oct 24, 2022

Codecov Report

Merging #4875 (f5bfed5) into main (864da20) will decrease coverage by 0.03%.
The diff coverage is 93.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4875      +/-   ##
==========================================
- Coverage   89.50%   89.46%   -0.04%     
==========================================
  Files         225      225              
  Lines       50191    50189       -2     
==========================================
- Hits        44923    44904      -19     
- Misses       5268     5285      +17     
Impacted Files Coverage Δ
src/guc.c 94.00% <ø> (ø)
src/subspace_store.c 97.72% <ø> (ø)
src/ts_catalog/catalog.c 85.91% <ø> (ø)
src/ts_catalog/continuous_agg.h 100.00% <ø> (ø)
tsl/src/bgw_policy/job.c 88.31% <0.00%> (-0.05%) ⬇️
tsl/src/compression/array.c 96.11% <0.00%> (ø)
tsl/src/compression/deltadelta.c 94.40% <0.00%> (ø)
tsl/src/remote/connection_cache.c 94.25% <ø> (ø)
tsl/src/remote/stmt_params.c 96.71% <ø> (ø)
tsl/src/compression/gorilla.c 90.15% <50.00%> (ø)
... and 39 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 864da20...f5bfed5. Read the comment docs.

@akuzm akuzm marked this pull request as ready for review October 25, 2022 09:04
@@ -1466,7 +1466,7 @@ Datum
tsl_compressed_data_recv(PG_FUNCTION_ARGS)
{
StringInfo buf = (StringInfo) PG_GETARG_POINTER(0);
CompressedDataHeader header = { { 0 } };
CompressedDataHeader header = { .vl_len_ = { 0 } };
Copy link
Member Author

@akuzm akuzm Oct 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-15 with -Wextra doesn't like double nested braces, and gcc 4.8.5 doesn't like single braces, so this is how we have to compromise to avoid warnings

Also see this PR https://github.com/timescale/timescaledb/pull/4867/files#r1004751330

@akuzm
Copy link
Member Author

akuzm commented Oct 25, 2022

Doesn't introduce new warnings on gcc 4.8.5 as of ab0e3ca

Our code mostly has warnings about comparison with different
signedness.
It's not something we normally do for the developer tools.
@akuzm akuzm merged commit 9b157d5 into timescale:main Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants