Skip to content

Add explicit casts to enum-to-integer conversions #2467

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

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

akosthekiss
Copy link
Member

Clang 6 is more picky about implicit conversions and complains
about loss of presicion and/or change of signedness.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]

Clang 6 is more picky about implicit conversions and complains
about loss of presicion and/or change of signedness.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
@akosthekiss
Copy link
Member Author

Tested on Ubuntu 18.04.1 LTS (Linux 4.15.0 x86_64) with the following command:

CC=clang-6.0 tools/build.py --clean --lto=off --error-messages=on --external-context=on \
  --jerry-debugger=on --line-info=on --logging=on --mem-stats=on --profile=es2015-subset \
  --show-opcodes=on --show-regexp-opcodes=on --snapshot-exec=on --snapshot-save=on \
  --valgrind=on --vm-exec-stop=on --jerry-libc=off --debug

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@yichoi yichoi left a comment

Choose a reason for hiding this comment

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

LGTM

@yichoi yichoi merged commit b31e430 into jerryscript-project:master Aug 13, 2018
@akosthekiss akosthekiss deleted the conversion-clang6 branch August 13, 2018 07:59
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Nov 29, 2018
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Nov 29, 2018
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Nov 29, 2018
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.

3 participants