Skip to content

Commit

Permalink
Wrap pragmas in MSVER blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Dec 28, 2023
1 parent 674cc76 commit fed384c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

#include "i18n_review.h"

#pragma warning(disable : 26478)
#ifdef _MSC_VER
# pragma warning(disable : 26478)
#endif

using namespace i18n_string_util;

Expand Down
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
#include <sstream>

// "Don't use std::move on constant variables." false positive in MSVC
// is issued from strucutured binding assignment.
#pragma warning(disable : 26478)
// is issued from structured binding assignment.
#ifdef _MSC_VER
# pragma warning(disable : 26478)
#endif

namespace fs = std::filesystem;
using namespace i18n_check;
Expand Down

0 comments on commit fed384c

Please sign in to comment.