Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 31239 invoked from network); 25 Apr 2008 05:07:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 05:07:26 -0000 Received: (qmail 55172 invoked by uid 500); 25 Apr 2008 05:07:28 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 55148 invoked by uid 500); 25 Apr 2008 05:07:28 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 55136 invoked by uid 99); 25 Apr 2008 05:07:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 22:07:28 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 05:06:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 90E50234C103 for ; Thu, 24 Apr 2008 22:03:55 -0700 (PDT) Message-ID: <1578329244.1209099835578.JavaMail.jira@brutus> Date: Thu, 24 Apr 2008 22:03:55 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Closed: (STDCXX-832) [HP aCC 6.16] warning #4232 in : conversion from "wchar_t *" to a more strictly aligned type In-Reply-To: <1657180882.1207608084325.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor closed STDCXX-832. ------------------------------- Fixed. > [HP aCC 6.16] warning #4232 in : conversion from "wchar_t *" to a more strictly aligned type > ---------------------------------------------------------------------------------------------------- > > Key: STDCXX-832 > URL: https://issues.apache.org/jira/browse/STDCXX-832 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.0 > Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.2.1 > > Original Estimate: 1h > Time Spent: 2h > Remaining Estimate: 0h > > Nightly builds with HP aCC 6.16 produce many warnings like the following: > {noformat} > aCC -c -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -AA +O2 +DD64 +w \ > +W392,655,684,818,819,849 \ > +W2193,2236,2261,2340,2401,2487 \ > +W4227,4229,4231,4235,4237,4249 \ > +W4255,4272,4284,4285,4286,4296,4297 +W3348 \ > $(TOPDIR)/src/ti_wnum_put.cpp > "$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "wchar_t *" to a more strictly aligned type "__rw::__string_ref, std::allocator> *" may cause misaligned access > return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1; > ^ > detected during: > instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=wchar_t, _Traits=std::char_traits, _Allocator=std::allocator]" at line 899 > instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=wchar_t, _Traits=std::char_traits, _Allocator=std::allocator]" at line 198 > instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=wchar_t, _Traits=std::char_traits, _Allocator=std::allocator]" at line 99 of "$(TOPDIR)/include/loc/_num_put.cc" > instantiation of "_OutputIter std::num_put<_CharT, _OutputIter>::_C_put(_OutputIter, std::ios_base &, _CharT, int, const void *) const [with _CharT=wchar_t, _OutputIter=std::ostreambuf_iterator>]" at line 183 of "$(TOPDIR)/include/loc/_num_put.h" > {noformat} > Here's the count from a recent build: > {noformat} > $ gunzip -c hpux-11.31-ia64-acc-6.16-12S-645002-log.gz | grep "include/string\", .*: warning #4232" | wc -l > 87 > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.