Skip to content

Commit b702324

Browse files
danbevMinh141120
authored andcommitted
examples : include examples in msvc disable warn (ggml/1270)
This commit adds the examples in the "list" of targets to ignore MSVC warnings. The motivation for this is that currently the examples generate a number of warnings that are ignore/disabled for the core ggml project. This makes for a cleaner output when building.
1 parent d763b3e commit b702324

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

ggml/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ if (MSVC)
369369
/wd4005 # Macro redefinition
370370
/wd4244 # Conversion from one type to another type, possible loss of data
371371
/wd4267 # Conversion from 'size_t' to a smaller type, possible loss of data
372-
/wd4305 # Conversion from 'type1' to 'type2', possible loss of data
373372
/wd4566 # Conversion from 'char' to 'wchar_t', possible loss of data
374373
/wd4996 # Disable POSIX deprecation warnings
375374
/wd4702 # Unreachable code warnings
@@ -416,20 +415,4 @@ if (MSVC)
416415
disable_msvc_warnings(simple-ctx)
417416
disable_msvc_warnings(simple-backend)
418417
endif()
419-
420-
if (GGML_BUILD_TESTS)
421-
disable_msvc_warnings(test-mul-mat)
422-
disable_msvc_warnings(test-arange)
423-
disable_msvc_warnings(test-backend-ops)
424-
disable_msvc_warnings(test-cont)
425-
disable_msvc_warnings(test-conv-transpose)
426-
disable_msvc_warnings(test-conv-transpose-1d)
427-
disable_msvc_warnings(test-conv1d)
428-
disable_msvc_warnings(test-conv2d)
429-
disable_msvc_warnings(test-conv2d-dw)
430-
disable_msvc_warnings(test-customop)
431-
disable_msvc_warnings(test-dup)
432-
disable_msvc_warnings(test-opt)
433-
disable_msvc_warnings(test-pool)
434-
endif ()
435418
endif()

0 commit comments

Comments
 (0)