pmarcinkiew / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
http://jerryscript.net
Apache License 2.0
0 stars 0 forks source link

Some conversion warning suppressed #1

Closed pmarcinkiew closed 7 years ago

pmarcinkiew commented 7 years ago

The compilation of JerryScript with valid Nuttx and TizenRT headers triggered many compilation warnings for int to bitfield conversions. One of the reasons for this warning is usage of unlikely preprocessor directives.

  1. A conversion warnings were disabled for JerryScript. They cause many false negatives for int to bit filed conversions at older versions of GCC.
  2. A flag Wno-implicit-fallthrough was enabled for all versions of GCC not just for version greater than 7.0.

JerryScript-DCO-1.0-Signed-off-by: Jaroslaw Pelczar j.pelczar@samsung.com