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

ODR violation: dropped a const? #43

Open
havogt opened this issue Sep 4, 2019 · 0 comments
Open

ODR violation: dropped a const? #43

havogt opened this issue Sep 4, 2019 · 0 comments

Comments

@havogt
Copy link
Contributor

havogt commented Sep 4, 2019

I got the following warning with gcc 9, didn't look into the problem, but could be a problem in cpp_bindgen:

cosmo/dycore/src/dycore/Bindings/dycore_base_bindings_float.h:125:6: warning: ‘gt_tracer_add_metainfo0’ violates the C++ One Definition Rule [-Wodr]
  125 | void gt_tracer_add_metainfo0(gt_handle*, int, char*, int);
      |      ^
cosmo/dycore/src/dycore/Bindings/TracerMetainfoBindings.cpp:24:1: note: type mismatch in parameter 3
   24 | GT_EXPORT_GENERIC_BINDING(4, gt_tracer_add_metainfo, tracer_add_metainfo_impl, (int)(double)(float)(bool)(const char*));
      | ^
cosmo/dycore/src/dycore/Bindings/TracerMetainfoBindings.cpp:24:1: note: type ‘const char’ should match type ‘char’
cosmo/dycore/src/dycore/Bindings/TracerMetainfoBindings.cpp:24:1: note: ‘gt_tracer_add_metainfo0’ was previously declared here
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

1 participant