Skip to content

Commit 173923d

Browse files
committed
Tested new static_assert on MinGW [ci skip]
1 parent 34fc5fe commit 173923d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cURL = c.shared{'lcurl',
1414
defines = DEFINES,
1515
dynamic = DYNAMIC,
1616
strip = true,
17+
cflags = IF(not MSVC, {'-Wno-unused-local-typedefs'})
1718
}
1819

1920
target('build', cURL)

src/lcutils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define LCURL_MAKE_VERSION(MIN, MAJ, PAT) ((MIN<<16) + (MAJ<<8) + PAT)
2929
#define LCURL_CURL_VER_GE(MIN, MAJ, PAT) (LIBCURL_VERSION_NUM >= LCURL_MAKE_VERSION(MIN, MAJ, PAT))
3030

31-
//! @todo test on mingw32 (gcc 4.8.1)
3231
#define LCURL_CONCAT_STATIC_ASSERT_IMPL_(x, y) LCURL_CONCAT1_STATIC_ASSERT_IMPL_ (x, y)
3332
#define LCURL_CONCAT1_STATIC_ASSERT_IMPL_(x, y) x##y
3433
#define LCURL_STATIC_ASSERT(expr) typedef char LCURL_CONCAT_STATIC_ASSERT_IMPL_(static_assert_failed_at_line_, __LINE__) [(expr) ? 1 : -1]

0 commit comments

Comments
 (0)