Switch to custom deleter type for unique_ptr sandbox/dkson95/build accepted/tizen/unified/toolchain/20240401.041519
authorSlava Barinov <v.barinov@samsung.com>
Fri, 29 Mar 2024 12:13:32 +0000 (15:13 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Sun, 31 Mar 2024 06:26:52 +0000 (15:26 +0900)
commit63545c57a27abffb19300969baa60b122132606d
tree1e439c663cfa9aed73758409d03edaaa096437e6
parent4a448258263abd08dd1012e868ef5eda2f46472c
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