Switch to custom deleter type for unique_ptr 49/308749/1
authorSlava Barinov <v.barinov@samsung.com>
Fri, 29 Mar 2024 12:13:32 +0000 (15:13 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Fri, 29 Mar 2024 12:13:32 +0000 (15:13 +0300)
commit4504701fb80f2f506b4ca0703ca34e57522aec12
treebace09b4dec1eb98f43ada6748c6f7e9dad3fe6a
parent2c748794e4a39e71b670aaafaa2a0a60cde1a05b
Switch to custom deleter type for unique_ptr

This prevents the error:

 src/parser/exec-checker/src/exec_checker.cc:202:42: error: ignoring attributes on template argument 'int (*)(FILE*)' [-Werror=ignored-attributes]
 202 |   std::unique_ptr<FILE, decltype(fclose)*> fp_auto(fp, fclose);
     |                                          ^

When building with new toolchain

Change-Id: I3b0b71ddb2c887d349e783e5ad3a6d1b1bbb561e
src/parser/exec-checker/src/exec_checker.cc