Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-04 Thread Tom Lane
Michael Paquier writes: > On Sat, Apr 4, 2015 at 6:21 AM, Tom Lane wrote: >> It occurred to me that maybe we could just turn off this class of warning, >> and after some experimentation I found out that >> "-Wno-unused-command-line-argument" does that, at least in the version >> of clang that App

Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread Michael Paquier
On Sat, Apr 4, 2015 at 6:21 AM, Tom Lane wrote: > I wrote: >> Peter Eisentraut writes: >>> These warnings also happen with older versions of clang. Now idea how >>> to fix yet. I'm thinking that clang should be fixed, because these >>> warnings are stupid. > >> Yeah, they're utterly stupid; who

Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread John Gorman
I have confirmed that "-Wno-unused-command-line-argument" suppresses the "-pthread" warning for clang 6.0 and does not trigger a warning in gcc 4.9. Works for me! John On Fri, Apr 3, 2015 at 5:21 PM, Tom Lane wrote: > I wrote: > > Peter Eisentraut writes: > >> These warnings also happen with

Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread Tom Lane
I wrote: > Peter Eisentraut writes: >> These warnings also happen with older versions of clang. Now idea how >> to fix yet. I'm thinking that clang should be fixed, because these >> warnings are stupid. > Yeah, they're utterly stupid; whoever put them in obviously doesn't > have a clue about ty

Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread Tom Lane
Peter Eisentraut writes: > On 4/3/15 4:02 PM, John Gorman wrote: >> I am getting compile warnings on OSX 10.10 from clang 6.0: >> >> clang: warning: argument unused during compilation: '-pthread' >> >> The 5 warnings are where we are making a -dynamiclib and >> the -pthread argument is not neces

Re: [HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread Peter Eisentraut
On 4/3/15 4:02 PM, John Gorman wrote: > I am getting compile warnings on OSX 10.10 from clang 6.0: > > clang: warning: argument unused during compilation: '-pthread' > > The 5 warnings are where we are making a -dynamiclib and > the -pthread argument is not necessary: > > ./src/interfaces/libpq/

[HACKERS] Compile warnings on OSX 10.10 clang 6.0

2015-04-03 Thread John Gorman
Hi All I am getting compile warnings on OSX 10.10 from clang 6.0: clang: warning: argument unused during compilation: '-pthread' The 5 warnings are where we are making a -dynamiclib and the -pthread argument is not necessary: ./src/interfaces/libpq/ ./src/interfaces/ecpg/pgtypeslib/ ./src/inter