jbedworth / cld2

Automatically exported from code.google.com/p/cld2
0 stars 0 forks source link

New GCC 5.0 hits problem with narrowing in list-initializers #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Following errors are produced by GCC compiler:

c++ -MMD -MF 
obj/third_party/cld_2/src/internal/cld2_static.cld_generated_cjk_uni_prop_80.o.d
 -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD 
-DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 
-DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 
-DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN 
-DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 
-DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS 
-DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 
-DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 
-DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 
-DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 
-DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 
-DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 
-DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DNDEBUG 
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen 
-I../../third_party/cld_2/src/internal -I../../third_party/cld_2/src/public 
-fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing 
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe 
-fPIC 
-B/home/marxin/Programming/chromium/src/third_party/binutils/Linux_x64/Release/b
in -Wno-unused-local-typedefs -Wno-format -Wno-unused-result -m64 -march=x86-64 
-O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables 
-fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden 
-Wno-deprecated -std=gnu++11 -Wno-narrowing -Wno-literal-suffix  -c 
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc -o 
obj/third_party/cld_2/src/internal/cld2_static.cld_generated_cjk_uni_prop_80.o 
-Wno-narrowing
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
 };
 ^
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
../../third_party/cld_2/src/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: 
error: narrowing conversion of ‘-14’ from ‘int’ to ‘CLD2::uint8 {aka 
unsigned char}’ inside { }
... (and many more)

Problem is more discussed in following thread: 
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/D5YxoMmtEmE
I think fix is quite obvious, generator should produce just uint8 numbers.

Thanks,
Martin

Original issue reported on code.google.com by marxin.l...@gmail.com on 5 Jan 2015 at 10:34

GoogleCodeExporter commented 9 years ago
Good morning, 
GCC 5.1 is now released and the check/error "narrowing conversion" is still 
here.
I would vote like Martin to fix the generator. 
Kindly
WT.

Original comment by William....@gmail.com on 11 Jun 2015 at 2:58

GoogleCodeExporter commented 9 years ago
riesa@, any chance we could get the generator code checked in and start 
iterating on it? Issue 33 is tracking that.

Original comment by andrewha...@google.com on 11 Jun 2015 at 3:53