Skip to content
Snippets Groups Projects
Verified Commit e8cdc2d1 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

move `COMPARE_RECORD` into UGDIM namespace

This silences a compiler warning from GCC when building programs with
LTO where GCC sees two definitions of `COMPARE_RECORD` (for 2d and for
3d):

```
../gm/refine.cc:3450:8: warning: type ‘struct compare_record’ violates the C++ One Definition Rule [-Wodr]
../gm/refine.cc:3450:8: note: a different type is defined in another translation unit
../gm/refine.cc:3453:12: note: the first difference of corresponding definitions is field ‘elem’
../gm/refine.cc:3453:12: note: a field of same name but different type is defined in another translation unit
../ug/gm.h:1644:24: note: type ‘union ELEMENT’ should match type ‘union ELEMENT’
```
parent 0a43677e
No related branches found
No related tags found
1 merge request!118move `COMPARE_RECORD` into UGDIM namespace
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment