Migrate to custom deleter type for unique_ptr 57/308757/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240402.151323 accepted/tizen/unified/20240402.163627 accepted/tizen/unified/x/20240403.102952
authorSlava Barinov <v.barinov@samsung.com>
Fri, 29 Mar 2024 13:52:32 +0000 (16:52 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Fri, 29 Mar 2024 13:54:14 +0000 (16:54 +0300)
commitc6ed11664ccb74ca11f6909039a8feca39513e72
tree0b30bf22e52d87a72d4200cb51f30fa296224ece
parent4d9fd473486d569403784157ac47f27c0900303f
Migrate to custom deleter type for unique_ptr

This prevents the error

 In file included from /home/abuild/rpmbuild/BUILD/trust-anchor-2.1.2/src/file-system.cpp:22:
 /home/abuild/rpmbuild/BUILD/trust-anchor-2.1.2/src/file-system.hxx:29:58: error: ignoring attributes on template argument 'int (*)(FILE*)' [-Werror=ignored-attributes]
    29 | using FilePtr = std::unique_ptr<FILE, decltype(&::fclose)>;
       |                                                          ^                    ^

When building with new toolchain

Change-Id: I4ef59f8a3c7d90e664f4fdd363cd385df980cd1d
src/certificate.cpp
src/file-system.cpp
src/file-system.hxx
tests/test-util.cpp