Arcmantis/warning deprecate WidenFilename#2398
Conversation
…ure removal Signed-off-by: Aries Moczar <arcmantis@protulae.com>
Signed-off-by: Aries Moczar <arcmantis@protulae.com>
|
Btw, IMHO a better approach is to just avoid the warning on Windows altogether. Treat the cause, not the symptoms. So, here: openexr/src/lib/OpenEXR/ImfMisc.cpp Line 2002 in 662ec14 do something like And the codecvt usage on Windows is gone, so no warnings there. The codecvt path is kept just for the 3.4 API. When WidenFilename() is eventually removed from the API, just move the native code snippet to an internal utility function that is entirely guarded by |
…nditions for __clang__ and __GNUC__. Signed-off-by: Aries Moczar <arcmantis@protulae.com>
|
This sounds good to me. I would like @cary-ilm 's opinion, but I can look into creating another PR if this is deemed necessary. |
|
I guess you'd still want these pragmas to supress the warnings due to the interim API deprecation and not only codecvt, so that extra change can indeed come separately. However, I'd suggest also adding TODO comments here to remember to remove these pragmas when the function is actually removed from the API... |
… should be removed once WidenFilename is removed. Signed-off-by: Aries Moczar <arcmantis@protulae.com>
814fcb9 to
0c69658
Compare
|
Thanks for working on this! In the tests, I'd prefer to tightly bracket the call to And it looks like And the TODO comments are a good note to clean the code up when |
|
Thanks for the feedback. I didn't want to crowd the file with pragmas, but I can definitely wrap each WidenFilename call, as this might cause other problems. Concerning _WIN32, kmilos pointed out earlier that simply relying on _WIN32 may break on MinGW, GCC or Clang compilers with the pragmas, that's why I needed to support each type separately. |
…ing deprectation warnings Signed-off-by: Aries Moczar <arcmantis@protulae.com>
Marked WidenFilename as deprecated. Suppressed deprecation warnings in unit-tests. Addresses issue #2349