소스 검색

- suppress some warnings for MSVC.

mirzayanovmr 9 년 전
부모
커밋
d16644c485
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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 "