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

MSVC compiler warnings #131

Open
bluetech opened this issue Dec 28, 2019 · 0 comments
Open

MSVC compiler warnings #131

bluetech opened this issue Dec 28, 2019 · 0 comments
Labels
compiler warning Compiler emits warnings that should be avoided os: Windows Windows-specific
Milestone

Comments

@bluetech
Copy link
Member

These are warnings the Windows CI displays. Some of these should be looked into. Mostly overflow and truncation potential due to casts. The enum casts can possibly lead to unaligned access.

../src/xkbcomp/parser.y(484): warning C4244: 'function': conversion from 'int64_t' to 'unsigned int', possible loss of data
../src/xkbcomp/parser.y(496): warning C4244: 'function': conversion from 'int64_t' to 'unsigned int', possible loss of data
../src/xkbcomp/parser.y(498): warning C4244: 'function': conversion from 'int64_t' to 'unsigned int', possible loss of data
../src/xkbcomp/parser.y(702): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data
d:\a\1\s\src\compose\parser.c(428): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
d:\a\1\s\src\xkbcomp\action.c(175): warning C4133: 'function': incompatible types - from 'xkb_action_type *' to 'unsigned int *'
d:\a\1\s\src\xkbcomp\action.c(181): warning C4133: 'function': incompatible types - from 'action_field *' to 'unsigned int *'
d:\a\1\s\src\xkbcomp\action.c(302): warning C4133: 'function': incompatible types - from 'xkb_action_flags *' to 'unsigned int *'
d:\a\1\s\src\xkbcomp\action.c(632): warning C4133: 'function': incompatible types - from 'xkb_action_controls *' to 'unsigned int *'
d:\a\1\s\src\xkbcomp\compat.c(269): warning C4133: 'function': incompatible types - from 'xkb_match_operation *' to 'unsigned int *'
d:\a\1\s\src\xkbcomp\rules.c(312): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
d:\a\1\s\src\xkbcomp\scanner.c(55): warning C4244: '=': conversion from 'double' to 'int64_t', possible loss of data
d:\a\1\s\test\log.c(64): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
d:\a\1\s\test\log.c(66): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
src/xkbcomp/keywords.gperf(95): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
@wismill wismill added os: Windows Windows-specific compiler warning Compiler emits warnings that should be avoided labels May 15, 2023
@wismill wismill added this to the 1.7.0 milestone Sep 22, 2023
@wismill wismill modified the milestones: 1.7.0, 1.8.0 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler warning Compiler emits warnings that should be avoided os: Windows Windows-specific
Projects
None yet
Development

No branches or pull requests

2 participants