Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
54014e42
Unverified
Commit
54014e42
authored
Jul 02, 2021
by
Mattias Ljungström
Committed by
GitHub
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silence warning C4100 on MSVC 2019 when exceptions are disabled (#2397)
parent
3e7a29cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/fmt/core.h
include/fmt/core.h
+3
-2
No files found.
include/fmt/core.h
View file @
54014e42
...
@@ -337,7 +337,7 @@ struct monostate {
...
@@ -337,7 +337,7 @@ struct monostate {
// `(void)var` method does not work on many intel compilers. This is
// `(void)var` method does not work on many intel compilers. This is
// from Herb Sutter, "Shutting up compiler warnings",
// from Herb Sutter, "Shutting up compiler warnings",
// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/
// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/
template
<
class
T
>
void
ignore_unused
(
const
T
&
)
{}
template
<
class
...
Ts
>
FMT_CONSTEXPR
void
ignore_unused
(
const
Ts
&
...
)
{}
// An enable_if helper to be used in template parameters which results in much
// An enable_if helper to be used in template parameters which results in much
// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
...
@@ -367,7 +367,8 @@ FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
...
@@ -367,7 +367,8 @@ FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
#ifndef FMT_ASSERT
#ifndef FMT_ASSERT
# ifdef NDEBUG
# ifdef NDEBUG
// FMT_ASSERT is not empty to avoid -Werror=empty-body.
// FMT_ASSERT is not empty to avoid -Werror=empty-body.
# define FMT_ASSERT(condition, message) ((void)0)
# define FMT_ASSERT(condition, message) \
::fmt::ignore_unused((condition), (message))
# else
# else
# define FMT_ASSERT(condition, message) \
# define FMT_ASSERT(condition, message) \
((condition)
/* void() fails with -Winvalid-constexpr on clang 4.0.1 */
\
((condition)
/* void() fails with -Winvalid-constexpr on clang 4.0.1 */
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment