Re: [patch] fix libstdc++/56012 - narrowing conversion in std::atomic_flag

2013-02-26 Thread Jonathan Wakely
On 17 January 2013 00:21, Jonathan Wakely wrote: > This fixes a regression since 4.6 when -Wsystem-headers is used. The > initialization of the __atomic_flag_base base class has a narrowing > conversion from int (the macro) to either bool or unsigned char. The > patch fixes it by calling a conste

Re: [patch] fix libstdc++/56012 - narrowing conversion in std::atomic_flag

2013-01-17 Thread Jonathan Wakely
On 17 January 2013 07:53, Daniel Krügler wrote: > 2013/1/17 Jonathan Wakely : >> This fixes a regression since 4.6 when -Wsystem-headers is used. The >> initialization of the __atomic_flag_base base class has a narrowing >> conversion from int (the macro) to either bool or unsigned char. The >>

Re: [patch] fix libstdc++/56012 - narrowing conversion in std::atomic_flag

2013-01-16 Thread Daniel Krügler
2013/1/17 Jonathan Wakely : > This fixes a regression since 4.6 when -Wsystem-headers is used. The > initialization of the __atomic_flag_base base class has a narrowing > conversion from int (the macro) to either bool or unsigned char. The > patch fixes it by calling a constexpr function which im

[patch] fix libstdc++/56012 - narrowing conversion in std::atomic_flag

2013-01-16 Thread Jonathan Wakely
This fixes a regression since 4.6 when -Wsystem-headers is used. The initialization of the __atomic_flag_base base class has a narrowing conversion from int (the macro) to either bool or unsigned char. The patch fixes it by calling a constexpr function which implicitly converts the value to the r