On 2/16/20, Steve <[email protected]> wrote: > I added it to the CMakeLists.txt file: > > # Set default C flags. > set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-strict-overflow > -fno-common")
To help detect some related problems that can lead to dead code and missed optimization, -Wstrict-prototypes and -Wmissing-prototypes would be helpful. Also the -W option seems to be missing. In old code bases, typical cleanup involves adding the static keyword on to functions that are only called from within a single file. This often helps with the discovery of unused code. The compiler is free to use different calling conventions with static functions and is better able to determine when other warnings should be issued. _______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
