Skip to content

Commit

Permalink
talipot-core/TlpTools: Silent not critical codecvt deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Sep 7, 2023
1 parent 672c5ae commit ac42ed5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion library/talipot-core/src/TlpTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
*
*/

// silent non critical codecvt deprecation warnings
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING

#include <locale>
#include <codecvt>

Expand Down Expand Up @@ -472,4 +477,6 @@ vector<string> tlp::tokenize(const string &str, const string &delimiter) {
pos = str.find_first_of(delimiter, lastPos);
}
return tokens;
}
}

#pragma clang diagnostic pop

0 comments on commit ac42ed5

Please sign in to comment.