Empirical analysis on the correlation between GCC compiler warnings and revision numbers of source files in five industrial software projects

  • Authors:
  • Raimund Moser;Barbara Russo;Giancarlo Succi

  • Affiliations:
  • Center for Applied Software Engineering, Free University of Bolzano-Bozen, Bolzano-Bozen, Italy 39100;Center for Applied Software Engineering, Free University of Bolzano-Bozen, Bolzano-Bozen, Italy 39100;Center for Applied Software Engineering, Free University of Bolzano-Bozen, Bolzano-Bozen, Italy 39100

  • Venue:
  • Empirical Software Engineering
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

This article discusses whether using warnings generated by the GNU C++ compiler can be used effectively to identify source code files that are likely to be error prone. We analyze five industrial projects written in C++ and belonging to the telecommunication domain. We find a significant positive correlation between the number of compiler warnings and the number of source files changes. We use such correlation to conclude that compiler warnings may be used as an indicator for the presence of software defects in source code. The result of this research is useful for finding defect-prone modules in newer projects, which lack change history.