소스 검색

Disable a warning that has been renamed

bel2125 7 년 전
부모
커밋
9617e8f640
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      test/public_server.c

+ 1 - 7
test/public_server.c

@@ -133,19 +133,13 @@ wait_not_null(void *volatile *data)
 #if defined(__MINGW32__) || defined(__GNUC__)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunreachable-code"
-#endif
-#ifdef __clang__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunreachable-code"
+#pragma GCC diagnostic ignored "-Wunreachable-code-return"
 #endif
 
 	ck_abort_msg("wait_not_null failed (%i sec)", i);
 
 	return 0;
 
-#ifdef __clang__
-#pragma clang diagnostic pop
-#endif
 #if defined(__MINGW32__) || defined(__GNUC__)
 #pragma GCC diagnostic pop
 #endif