Skip to content

[core] "ignoring attribute on template argument" in file Log.hpp

Required prerequisites

  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker and discussions to verify that this hasn't already been reported. +1 or comment there if it has.

What commit version of aidge do you use

  • aidge_core: dev

Problem description

When compiling, a warning occurs for line 187 of Log.hpp :

/aidge/aidge_core/include/aidge/utils/Log.hpp:187:56: warning: ignoring attributes on template argument ‘int (*)(FILE*)[-Wignored-attributes]
  187 |     static std::unique_ptr<FILE, decltype(&std::fclose)> mFile;