GSoC/GCI Archive
Google Code-in 2012 BRL-CAD

Fix some LLVM Clang compilation warnings (#2)

completed by: Skriptkid

mentors: Sean

This is a follow-on task to a previous attempt to build BRL-CAD with the LLVM compiler:

That task encountered a number of warnings and we like to fix our warnings as a matter of code quality, standards conformance, and portability.  Looking at the log, most are pretty easy warnings to address but care must be taken to quell the warnings without suppressing the false positives in a bad way.

Your task is to fix some of the warnings, at least 20 of them.  Keep track of how long you work on them and we may create additional tasks accordingly for your efforts.  You'll submit your work as a single patch file.  See for help.

Note that the %V format specifier is valid to our functions and the 'inline' keyword is intentinoal.  Both need to be handled at the cmake build sysstem level, not by removing them from code or changing them.  If you don't know what that means, ignore those warnings.

Submit a log of the warning messages that you fixed (since they'll obviously not be there if your patch is appiled).  Copy-paste them and the preceding compile line verbatim from a "make VERBOSE=1" compilation.

As there are multiple warning-fix tasks, make sure you're compiling with up-to-date sources and are able to compile successfully before claiming this task.