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
6cb68f94
Commit
6cb68f94
authored
Feb 10, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
0b635c9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
include/fmt/format.cc
include/fmt/format.cc
+2
-4
include/fmt/format.h
include/fmt/format.h
+5
-2
No files found.
include/fmt/format.cc
View file @
6cb68f94
...
...
@@ -59,10 +59,10 @@
// Dummy implementations of strerror_r and strerror_s called if corresponding
// system functions are not available.
static
inline
fmt
::
internal
::
null
<>
strerror_r
(
int
,
char
*
,
...)
{
inline
fmt
::
internal
::
null
<>
strerror_r
(
int
,
char
*
,
...)
{
return
fmt
::
internal
::
null
<>
();
}
static
inline
fmt
::
internal
::
null
<>
strerror_s
(
char
*
,
std
::
size_t
,
...)
{
inline
fmt
::
internal
::
null
<>
strerror_s
(
char
*
,
std
::
size_t
,
...)
{
return
fmt
::
internal
::
null
<>
();
}
...
...
@@ -157,8 +157,6 @@ int safe_strerror(
:
error_code_
(
err_code
),
buffer_
(
buf
),
buffer_size_
(
buf_size
)
{}
int
run
()
{
// Suppress a warning about unused strerror_r.
strerror_r
(
0
,
FMT_NULL
,
""
);
return
handle
(
strerror_r
(
error_code_
,
buffer_
,
buffer_size_
));
}
};
...
...
include/fmt/format.h
View file @
6cb68f94
...
...
@@ -160,7 +160,10 @@
namespace
fmt
{
namespace
internal
{
# pragma intrinsic(_BitScanReverse)
// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
# ifndef __clang__
# pragma intrinsic(_BitScanReverse)
# endif
inline
uint32_t
clz
(
uint32_t
x
)
{
unsigned
long
r
=
0
;
_BitScanReverse
(
&
r
,
x
);
...
...
@@ -174,7 +177,7 @@ inline uint32_t clz(uint32_t x) {
}
# define FMT_BUILTIN_CLZ(n) fmt::internal::clz(n)
# if
def _WIN64
# if
defined(_WIN64) && !defined(__clang__)
# pragma intrinsic(_BitScanReverse64)
# endif
...
...
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