osamu620 / OpenHTJ2K

An open source implementation of ITU-T Rec.814 | ISO 15444-15 (a.k.a. HTJ2K).
BSD 3-Clause "New" or "Revised" License
35 stars 10 forks source link

New GCC 12.2.0 #136

Closed Jamaika1 closed 2 years ago

Jamaika1 commented 2 years ago
main_enc.cpp:52:30: warning: ignoring return value of 'bool std::filesystem::exists(const __cxx11::path&)', declared with attribute 'nodiscard' [-Wunused-result]
   52 |       std::filesystem::exists(fname);
      |       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from c:\msys1220\include\c++\12.2.0\filesystem:47,
                 from main_enc.cpp:38:
c:\msys1220\include\c++\12.2.0\bits\fs_ops.h:133:3: note: declared here
  133 |   exists(const path& __p)
      |   ^~~~~~
osamu620 commented 2 years ago

@Jamaika1 Thanks for indicating it. I will fix this in the next commit.

osamu620 commented 2 years ago

PR #137 will fix this.