https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82286
--- Comment #3 from Herman ten Brugge <hermantenbrugge at home dot nl> --- If I put: if (p_input_matrix->nof_rows > MAX_MATRIX_SIZE || p_input_matrix->nof_cols > MAX_MATRIX_SIZE) return; at the start of my function I still get the warning. I removed some assert statement at the start of the original code because they did nothing to preevent the warning.