How to enable all warnings when using ndk?

can someone tell me how can i enable all warnings when creating using ndk? I tried to look on the Internet, but did not find anything.

+5
source share
1 answer

Add to Android.mk :

 LOCAL_CFLAGS += -Wall -Wextra -pedantic 

Or any other flags you want to provide to the compiler.

If you have Application.mk , you can add there:

 APP_CFLAGS += -Wall -Wextra -pedantic 

Thus, it is applicable to all modules that you create.

+4
source

Source: https://habr.com/ru/post/1209458/


All Articles