On Wed, May 13, 2020 at 12:56 PM Kunal Chauhan via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > I want my source file of c to be checked for code violations and null check > etc. If by 'null check' you mean null pointer checks, then some of them are detected with -fsanitize=undefined. Another one that may help is -fsanitize=address. And Valgrind with -O1 is fairly reliable. Also see http://valgrind.org/docs/manual/QuickStart.html. Jeff