[*] отключение предупреждения для всего файла с использованием прагмы .
Отключение. ПРЕДУПРЕЖДЕНИЕ.
Код: Выделить всё
Foo *var = gcc_thinks_this_could_be_null();
/* Hint to developers & the compiler that this won't be null. */
assert(var != NULL);
/* Ideally GCC would not warn about a null de-reference. */
var->fn();
Подробнее здесь: https://stackoverflow.com/questions/796 ... ce-warning
Мобильная версия