Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 6th, 2008, 07:40 AM
Paolo Carlini
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Fix Werror breakage (maintainer-mode)

Can somebody enlighten me as to a proper locale_init.cc fix?

Yes, the warning is new and I'd like to understand whether the warning is worrisome or not, or even bogus. That's not clear to me, at the moment. As a LAST resort, the warning could be suppressed via the "usual" trick, something like:

const char* __p = reinterpret_cast<const char*>(c_locale);
return *reinterpret_cast<const locale*>(__p);

which I would consider a tad better than disabling -Werror selectively.

The unwind-pe.h change seems obviously safe to me.

Paolo.

Reply With Quote
  #2  
Old July 7th, 2008, 01:40 PM
Dave Korn
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Fix Werror breakage (maintainer-mode)

Gabriel Dos Reis wrote on 06 July 2008 20:34:

Sun, Jul 6, 2008 at 7:51 AM, Richard Guenther
<richard.guenther@gmailwrote:

>The code does
>
>typedef char fake_locale[sizeof(locale)]
>__attribute__ ((aligned(__alignof__(locale))));
>fake_locale c_locale;


Say, isn't it invalid (or of uncertain validity) to place alignment
attributes on typedefs like that?

Notice that this idiom may become common place, now that C++0x has alignas
(the moral equivalent of GNU C++'s attribute above), along with the
library aligned_storage<template.

Hopefully that wouldn't suffer the same complications?

cheers,
DaveK
--
Can't think of a witty .sigline today

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Development > Fix Werror breakage (maintainer-mode)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway