Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev or master dont build due to -Werror #66

Open
farmboy0 opened this issue Nov 22, 2016 · 2 comments
Open

dev or master dont build due to -Werror #66

farmboy0 opened this issue Nov 22, 2016 · 2 comments

Comments

@farmboy0
Copy link

[ 49%] Building CXX object src/backends/odbc/CMakeFiles/soci_odbc.dir/blob.cpp.o
/home/eho/work/Workspace/portage/dev-util/medusa-9999/work/medusa-9999/deps/soci/src/backends/odbc/standard-use-type.cpp: In member function ‘void* soci::odbc_standard_use_type_backend::prepare_for_bind(SQLLEN&, SQLSMALLINT&, SQLSMALLINT&)’:
/home/eho/work/Workspace/portage/dev-util/medusa-9999/work/medusa-9999/deps/soci/src/backends/odbc/standard-use-type.cpp:22:12: error: enumeration value ‘x_xmltype’ not handled in switch [-Werror=switch]
switch (type_)
^
/home/eho/work/Workspace/portage/dev-util/medusa-9999/work/medusa-9999/deps/soci/src/backends/odbc/standard-use-type.cpp:22:12: error: enumeration value ‘x_longstring’ not handled in switch [-Werror=switch]
cc1plus: all warnings being treated as errors
src/backends/odbc/CMakeFiles/soci_odbc_static.dir/build.make:182: recipe for target 'src/backends/odbc/CMakeFiles/soci_odbc_static.dir/standard-use-type.cpp.o' failed

The -Werror seems to be introduced by the pybind11 external project.

@wisk
Copy link
Owner

wisk commented Dec 4, 2016

Hi @farmboy0,

I don't remember using -Werror in the CMake script, and AFAIK even if pybind11 modifies the CXXFLAGS, it should not be used by another projects.
BTW, could you tell me which OS/distrib/compiler/version you are using?

@farmboy0
Copy link
Author

farmboy0 commented Dec 4, 2016

gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3
Linux AMD64

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

No branches or pull requests

2 participants