Skip to content

chore: avoid silent implicit type conversions#74

Merged
vadimskipin merged 1 commit into
ClickHouse:mainfrom
kavirajk:kavirajk/avoid-silent-type-conversion
Jun 18, 2026
Merged

chore: avoid silent implicit type conversions#74
vadimskipin merged 1 commit into
ClickHouse:mainfrom
kavirajk:kavirajk/avoid-silent-type-conversion

Conversation

@kavirajk

Copy link
Copy Markdown
Contributor

follow up to #73

Added some compiler flags to avoid such silent converstions in the future. Played with different options and these combinations seems to be practical at the moment without much noise.

follow up to ClickHouse#73

Added some compiler flags to avoid such silent converstions in the
future. Played with different options and these combinations seems to be
practical at the moment without much noise.

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>

@vadimskipin vadimskipin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Personally I do not see any point of adding all this static_casts - the same data truncation with no checks...

@vadimskipin vadimskipin merged commit f758b30 into ClickHouse:main Jun 18, 2026
14 checks passed
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.

2 participants