D:/git/opencv-3.4.15/modules/core/src/persistence_base64.cpp: In function 'bool base64::base64_valid(const uint8_t*, size_t, size_t)':
D:/git/opencv-3.4.15/modules/core/src/persistence_base64.cpp:167:31: error: comparing the result of pointer addition '(src + ((sizetype)off))' and NULL [-Werror=address]
167 | if (src == 0 || src + off == 0)
| ~~~~~~~~~~^~~~
cc1plus.exe: some warnings being treated as errors
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:971: modules/core/CMakeFiles/opencv_core.dir/src/persistence_base64.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1456: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
解决办法:在此文件屏蔽警告