Skip to content

Conversation

gahr
Copy link
Contributor

@gahr gahr commented Jun 23, 2015

Clang 3.6 warns about unused local typedefs and causes a compilation error to occur because of -Wall.
See build log at
http://beefy4.nyi.freebsd.org/data/head-amd64-default/p390348_s284712/logs/cassandra-cpp-driver-2.0.1.log

@datastax-bot
Copy link

Hi @gahr, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

Sincerely,
DataStax Bot.

@datastax-bot
Copy link

Thank you @gahr for signing the Contribution License Agreement.

Cheers,
DataStax Bot.

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jun 23, 2015
  Upstreamed at: datastax/cpp-driver#179
- Explicitely add static library


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@390463 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jun 23, 2015
  Upstreamed at: datastax/cpp-driver#179
- Explicitely add static library
@mpenick
Copy link
Contributor

mpenick commented Jul 1, 2015

@gahr Thanks for the patch. What platform are you running clang on? I'm building with clang 3.6 on OS X and "-Wno-unused-local-typedef" is not a valid flag...

@gahr
Copy link
Contributor Author

gahr commented Jul 1, 2015

It's actually 3.6.1

@mpenick mpenick merged commit 2d1e07b into datastax:master Jul 8, 2015
@mpenick
Copy link
Contributor

mpenick commented Jul 8, 2015

Thanks again. It was a bit more complicated than checking for the compiler version because Apple's clang version is at 6+. This is fixed in CMake 3.0 (http://www.cmake.org/cmake/help/v3.0/policy/CMP0025.html#policy:CMP0025), but we need to support older platforms. So I need to added detection for Apple's clang vs LLVM's clang: 4be751c

@gahr
Copy link
Contributor Author

gahr commented Jul 8, 2015

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants