Open Bug 1060886 Opened 10 years ago Updated 2 years ago

narrowing conversion inside {} compilation errors

Categories

(Thunderbird :: OS Integration, defect)

31 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

People

(Reporter: wolfiR, Unassigned)

Details

Thunderbird 31 fails to build with gcc 4.5 on x86-64 because of the following:

[ 2883s] c++ -o nsMailGNOMEIntegration.o -c -I../../../mozilla/dist/stl_wrappers -I../../../mozilla/dist/system_wrappers -include /usr/src/packages/BUILD/thunderbird/mozilla/config/gcc_hidden.h -DMOZ_APP_NAME=\"thunderbird\" -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DOSTYPE=\"Linux3.11\" -DOSARCH=Linux -DNO_NSPR_10_SUPPORT  -I/usr/src/packages/BUILD/thunderbird/mail/components/shell -I. -I../../../mozilla/dist/include -I../../../mozilla/dist/include/nsprpub  -I/usr/include/nspr4 -I/usr/include/nss3  -I/usr/src/packages/BUILD/obj/mozilla/dist/include     -fPIC  -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Os -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/gtk-unix-print-2.0     -DMOZILLA_CLIENT -include ../../../mozilla/mozilla-config.h -MD -MP -MF .deps/nsMailGNOMEIntegration.o.pp /usr/src/packages/BUILD/thunderbird/mail/components/shell/nsMailGNOMEIntegration.cpp
[ 2884s] /usr/src/packages/BUILD/thunderbird/mail/components/shell/nsMailGNOMEIntegration.cpp:64:1: error: narrowing conversion of 'mozilla::ArrayLength [with T = const char* const, long unsigned int N = 1ul, size_t = long unsigned int](((const char* const (&)[1])(& sMailProtocols)))' from 'size_t' to 'unsigned int' inside { }
[ 2884s] /usr/src/packages/BUILD/thunderbird/mail/components/shell/nsMailGNOMEIntegration.cpp:64:1: error: narrowing conversion of 'mozilla::ArrayLength [with T = const char* const, long unsigned int N = 3ul, size_t = long unsigned int](((const char* const (&)[3])(& sNewsProtocols)))' from 'size_t' to 'unsigned int' inside { }
[ 2884s] /usr/src/packages/BUILD/thunderbird/mail/components/shell/nsMailGNOMEIntegration.cpp:64:1: error: narrowing conversion of 'mozilla::ArrayLength [with T = const char* const, long unsigned int N = 1ul, size_t = long unsigned int](((const char* const (&)[1])(& sFeedProtocols)))' from 'size_t' to 'unsigned int' inside { }
[ 2884s] make[5]: *** [nsMailGNOMEIntegration.o] Error 1
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.