News for hackers. Stuff that matters.
Re:Elevate your C programming skills by exploring the SQLite... by MaulingMonkey on Sunday July 09, 2017 @01:31PM (#14730751)
For this specific case, warnings can save you:

https://wandbox.org/permlink/wwbCYysH039z3YqN

  prog.cc: In function 'int main()':
  prog.cc:8:16: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
       int ru = 0 > u0 - u1;
                ~~^~~~~~~~~
Re:Elevate your C programming skills by exploring the SQLite... by wav-part on Sunday July 09, 2017 @01:40PM (#14730790)
I had -Wall set but I forgot that its misleading. -Wextra is needed for -Wtype-limits and -Wsign-compare.