>> That's my suggestion:
>> -Wstrict-overflow=5 (no warning on the existing code basis, that's
>> great!)
> 
> What does this do?

I find this switch particular useful to find if/then/else constructs int 
the code where the compiler reduces a comparisons to constants. Then the 
whole if/then/else is typically not necessary.

>> -Wpointer-arith (no warnings on the existing code basis)
This warns about code that depends on the size of void or a function 
type. Both are undefined int C.

>> -Wformat=2 (no warnings on the existing code basis)
-Wformat=2 employs the strictest checks for format errors when calling 
printf or scanf. Both functions are very likely to buffer overflow 
attacks if the format string is not handled carefully.

Regards,

Stephan

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to