Skip to content

Commit 2a84050

Browse files
committed
Fix compilation errors
1 parent 615493c commit 2a84050

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

performance/containers_hashmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#if defined(__GNUC__)
1515
#pragma GCC diagnostic push
1616
#pragma GCC diagnostic ignored "-Wshadow" // GCC: warning: declaration of 'expression' shadows a parameter or member
17-
#if defined(__GNUC__ >= 13)
17+
#if (__GNUC__ >= 13)
1818
#pragma GCC diagnostic ignored "-Wdangling-reference" // GCC: warning: possibly dangling reference to a temporary
1919
#endif
2020
#elif defined(_MSC_VER)

source/string/encoding.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
#include "string/encoding.h"
1010

11+
#if defined(__clang__)
12+
#pragma clang diagnostic push
13+
#pragma clang diagnostic ignored "-Wdeprecated" // Clang: warning: 'codecvt' is deprecated
14+
#endif
15+
1116
#include <algorithm>
1217
#include <cassert>
1318
#include <codecvt>
1419
#include <locale>
1520
#include <vector>
1621

17-
#if defined(__clang__)
18-
#pragma clang diagnostic push
19-
#pragma clang diagnostic ignored "-Wdeprecated" // Clang: warning: 'codecvt' is deprecated
20-
#endif
21-
2222
namespace CppCommon {
2323

2424
std::string Encoding::ToUTF8(std::wstring_view wstr)

0 commit comments

Comments
 (0)