Skip to content

Commit 49f52a4

Browse files
danbevqnixsynapse
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 4457d07 commit 49f52a4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ggml/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ option(GGML_RVV "ggml: enable rvv" ON)
131131
option(GGML_RV_ZFH "ggml: enable riscv zfh" OFF)
132132
option(GGML_XTHEADVECTOR "ggml: enable xtheadvector" OFF)
133133
option(GGML_VXE "ggml: enable vxe" ON)
134-
option(GGML_NNPA "ggml: enable nnpa" ON)
135134

136135
option(GGML_CPU_ALL_VARIANTS "ggml: build all variants of the CPU backend (requires GGML_BACKEND_DL)" OFF)
137136
set(GGML_CPU_ARM_ARCH "" CACHE STRING "ggml: CPU architecture for ARM")
@@ -369,7 +368,6 @@ if (MSVC)
369368
/wd4005 # Macro redefinition
370369
/wd4244 # Conversion from one type to another type, possible loss of data
371370
/wd4267 # Conversion from 'size_t' to a smaller type, possible loss of data
372-
/wd4305 # Conversion from 'type1' to 'type2', possible loss of data
373371
/wd4566 # Conversion from 'char' to 'wchar_t', possible loss of data
374372
/wd4996 # Disable POSIX deprecation warnings
375373
/wd4702 # Unreachable code warnings
@@ -416,20 +414,4 @@ if (MSVC)
416414
disable_msvc_warnings(simple-ctx)
417415
disable_msvc_warnings(simple-backend)
418416
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 ()
435417
endif()

0 commit comments

Comments
 (0)