Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8b465291
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d1d0b8afce2fb07134a243aa42136424a3a632a2"
Unverified
Commit
8b465291
authored
Jan 10, 2022
by
Adrià Arrufat
Committed by
GitHub
Jan 10, 2022
Browse files
Fix MSVC pragma warnings with other compilers (#2483)
parent
a6f29d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/geometry/rectangle.h
dlib/geometry/rectangle.h
+4
-0
No files found.
dlib/geometry/rectangle.h
View file @
8b465291
...
@@ -750,8 +750,10 @@ namespace dlib
...
@@ -750,8 +750,10 @@ namespace dlib
// Circumvent what appears to be a bug in Visual Studio 2019's optimizer
// Circumvent what appears to be a bug in Visual Studio 2019's optimizer
// (see: https://forum.juce.com/t/warning-in-the-lastest-vs2019/38267)
// (see: https://forum.juce.com/t/warning-in-the-lastest-vs2019/38267)
#if defined (_MSVC_VER)
#pragma warning ( push )
#pragma warning ( push )
#pragma warning ( disable: 4723 )
#pragma warning ( disable: 4723 )
#endif
inline
rectangle
set_rect_area
(
inline
rectangle
set_rect_area
(
const
rectangle
&
rect
,
const
rectangle
&
rect
,
unsigned
long
area
unsigned
long
area
...
@@ -772,7 +774,9 @@ namespace dlib
...
@@ -772,7 +774,9 @@ namespace dlib
return
centered_rect
(
rect
,
(
long
)
std
::
round
(
rect
.
width
()
*
scale
),
(
long
)
std
::
round
(
rect
.
height
()
*
scale
));
return
centered_rect
(
rect
,
(
long
)
std
::
round
(
rect
.
width
()
*
scale
),
(
long
)
std
::
round
(
rect
.
height
()
*
scale
));
}
}
}
}
#if defined (_MSVC_VER)
#pragma warning ( pop )
#pragma warning ( pop )
#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