Thanks We started working on fixing the code. How its behaving differently in gcc 4.2 and gcc 8.2 compiler? -----Original Message----- From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx> Sent: Thursday, April 1, 2021 12:36 PM To: Kannuswamy, Nanthakumar <nanthakumar.kannuswamy@xxxxxxxxxx> Cc: gcc-help@xxxxxxxxxxx Subject: Re: Need suggestion for using intypes.h features in centos5 gcc 4.1.2 compiler version. On Thu, 1 Apr 2021 at 15:47, Kannuswamy, Nanthakumar wrote: > > Hello, > Hope doing great. I mimic the production code here and would like to know the reason why gcc 8.2 is not throwing any warnings. This has nothing to do with inttypes.h, so it would have been helpful to change the subject line for this new topic. Your code has undefined behaviour. The compiler cannot detect all forms of undefined behaviour at compile time. > We provided -Wall and -Wextra. Please let me know the right flag to show the warning during compilation time. There is no option that will give you a warning for this code at compile time, sorry. This communication is the property of E*TRADE Financial Holdings, LLC and its affiliates and does not constitute an offer to sell or the solicitation of an offer to buy any security. It is intended only for the person to whom it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this communication, or the information contained herein, by anyone other than the intended recipient is prohibited. If you have received this communication in error, please immediately notify E*TRADE Financial Holdings, LLC at (800) 387-2331, and delete and destroy any copies hereof.