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
70a342f4
Commit
70a342f4
authored
Jul 23, 2018
by
Lukas-Buricin
Committed by
Davis E. King
Jul 23, 2018
Browse files
Fix for "warning C4724: potential mod by 0" in matrix.h (#1424)
parent
98d9703d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dlib/matrix/matrix.h
dlib/matrix/matrix.h
+7
-0
No files found.
dlib/matrix/matrix.h
View file @
70a342f4
...
@@ -39,6 +39,12 @@
...
@@ -39,6 +39,12 @@
// is not possible because the division operation is inside "if (NR!=0)" block.
// is not possible because the division operation is inside "if (NR!=0)" block.
#pragma warning(disable : 4723)
#pragma warning(disable : 4723)
// "warning C4724: potential mod by 0" - This warning is triggered in
// matrix(const std::initializer_list<T>& l) where the compiler can see that
// matrix<> was templated in a way making NR ending up 0, but mod by 0 at runtime
// is not possible because the mod operation is inside "if (NR!=0)" block.
#pragma warning(disable : 4724)
#endif
#endif
namespace
dlib
namespace
dlib
...
@@ -2162,6 +2168,7 @@ namespace dlib
...
@@ -2162,6 +2168,7 @@ namespace dlib
// put warnings back to their default settings
// put warnings back to their default settings
#pragma warning(default : 4355)
#pragma warning(default : 4355)
#pragma warning(default : 4723)
#pragma warning(default : 4723)
#pragma warning(default : 4724)
#endif
#endif
#endif // DLIB_MATRIx_
#endif // DLIB_MATRIx_
...
...
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