Date: Sat, 23 Jan 2016 03:58:32 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206513] x11/lumina: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? Message-ID: <bug-206513-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206513 Bug ID: 206513 Summary: x11/lumina: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kmoore@FreeBSD.org Reporter: markmi@dsl-only.net Flags: maintainer-feedback?(kmoore@FreeBSD.org) Assignee: kmoore@FreeBSD.org When I did a "portmaster -iDK x11/lumina" it reported use of a delete not matched to the pointer variable's new[]. For modern environments (such as 11.0-CURRENT libc++ based) this is likely to not work as I understand thing= s. (Might there be older libraries that did not support delete[]?) /usr/bin/clang++ -target armv6--freebsd11.0-gnueabi -march=3Darmv7-a -mcpu=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access -c -pipe -mfloat-abi=3Dsoftfp -g -fno-strict-aliasing -Wall -W -pthread -D_THREAD_SA= FE -fPIC -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtX11Extras -I/usr/local/include/qt5/QtMultimedia -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtCore -I. -I/usr/local/include -I/usr/local/inclu= de -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o LuminaX11.o LuminaX11.cpp LuminaX11.cpp:137:3: warning: 'delete' applied to a pointer that was alloca= ted with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete list; ^ [] LuminaX11.cpp:130:24: note: allocated with 'new[]' here xcb_window_t *list =3D new xcb_window_t[ roots.length() ]; ^ 1 warning generated. The build generated no other complaints. (I happen to be experimenting with projects/clang380-import use targeting a Raspberry Pi 2B. The arm7-a and cortex-a7 are part of that and FreeBSD requ= ires aligned accesses for such a context. That explains some of the extracted clang++ command material and indicate the vintage of C++ environment for the specific example context. -r294179 of projects/clang380-import was in use f= or this note.) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206513-13>