Skip to content

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

Merged
yichoi merged 1 commit intojerryscript-project:masterfrom
akosthekiss:conversion-clang6
Aug 13, 2018
Merged

Add explicit casts to enum-to-integer conversions#2467
yichoi merged 1 commit intojerryscript-project:masterfrom
akosthekiss:conversion-clang6

Conversation

@akosthekiss
Copy link
Copy Markdown
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 akiss@inf.u-szeged.hu

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 akiss@inf.u-szeged.hu
@akosthekiss
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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