简体   繁体   中英

How do I turn off warnings when compiling a kernel?

I'm trying to compile an android kernel using clang and I'm getting warnings that I don't care about. For compilation I use the command make -j3 CC=clang O=output , so I cannot just add the -Wno-everything argument as if I were using the command clang file.c . As I understand it, I can disable some warnings by adding #pragma to the file that causes the error. But also I have one strange error that does not reference any file:

warning: unknown warning option '-Wno-vectorizer-no-neon' [-Wunknown-warning-option]

How can I turn off all warnings? Or at least this one.

PS: Sorry for my English.

The solution was to add the -Wno-everything argument to the ARCH_CPPFLAGS parameter in the Makefile .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM