Commit 2189c3a
committed
doctest: Do not use unnamed class
When compiling with clang this results in emitting absolute path into
debug info, especially .debug_str section has
~(unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5)
(unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5)
Therefore use a name for the class instead and help get rid of this
absolute path in debug info. This fixes
File /usr/lib/libcereal/ptest/tests/.debug/test_unordered_map in package libcereal-dbg contains reference to TMPDIR
Signed-off-by: Khem Raj <raj.khem@gmail.com>1 parent ddd4672 commit 2189c3a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6424 | 6424 | | |
6425 | 6425 | | |
6426 | 6426 | | |
6427 | | - | |
| 6427 | + | |
6428 | 6428 | | |
6429 | 6429 | | |
6430 | 6430 | | |
| |||
0 commit comments