Browse Source

- suppress some warnings for MSVC.

mirzayanovmr 9 years ago
parent
commit
d16644c485
1 changed files with 6 additions and 0 deletions
  1. 6 0
      testlib.h

+ 6 - 0
testlib.h

@@ -3316,6 +3316,9 @@ void random_shuffle(_RandomAccessIter , _RandomAccessIter )
 #ifdef __GNUC__
 __attribute__ ((error("Don't use rand(), use rnd.next() instead")))
 #endif
+#ifdef _MSC_VER
+#   pragma warning( disable : 4273 )
+#endif
 int rand() RAND_THROW_STATEMENT
 {
     quitf(_fail, "Don't use rand(), use rnd.next() instead");
@@ -3330,6 +3333,9 @@ __attribute__ ((error("Don't use srand(), you should use "
         "by hash code of the command line params. The third parameter "
         "is randomGeneratorVersion (currently the latest is 1).")))
 #endif
+#ifdef _MSC_VER
+#   pragma warning( disable : 4273 )
+#endif
 void srand(unsigned int seed) RAND_THROW_STATEMENT
 {
     quitf(_fail, "Don't use srand(), you should use "