From owner-freebsd-ports-bugs@freebsd.org Sat Jan 23 03:58:32 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E14BA8DC5C for ; Sat, 23 Jan 2016 03:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCE61B0A for ; Sat, 23 Jan 2016 03:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0N3wV0d073333 for ; Sat, 23 Jan 2016 03:58:32 GMT (envelope-from bugzilla-noreply@freebsd.org) 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[]'? Date: Sat, 23 Jan 2016 03:58:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kmoore@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 03:58:32 -0000 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.=