This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sat, Aug 23, 2008 at 7:14 PM, Aaron W. LaFramboise <aaronavay62@aaronwl.com> wrote:Currently on i386-pc-mingw32, casting away constness in __gthread_setspecific causes a bootstrap failure with --enable-werror. This must be true for a number of other targets which do the same thing.
The ultimate problem here is that there's nothing about this parameter that is const: __gthread_getspecific returns a non-const pointer, not a const one.
But pthread_setspecific _does_ take a constant pointer as argument.
Why not add an explicit cast for the mingw32 case?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |