On 16.04.2013, at 05:06, David Blaikie <[email protected]> wrote: > On Sun, Mar 31, 2013 at 1:14 PM, Benjamin Kramer > <[email protected]> wrote: >> Author: d0k >> Date: Sun Mar 31 15:14:24 2013 >> New Revision: 178453 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=178453&view=rev >> Log: >> Fix typo. This method isn't used anywhere. > > Better off just removing dead code?
Maybe, but it's not unusual for a getter method to sit around unused for a long time. - Ben > >> >> Modified: >> cfe/trunk/include/clang/Basic/Diagnostic.h >> >> Modified: cfe/trunk/include/clang/Basic/Diagnostic.h >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=178453&r1=178452&r2=178453&view=diff >> ============================================================================== >> --- cfe/trunk/include/clang/Basic/Diagnostic.h (original) >> +++ cfe/trunk/include/clang/Basic/Diagnostic.h Sun Mar 31 15:14:24 2013 >> @@ -436,8 +436,8 @@ public: >> /// >> /// If this and IgnoreAllWarnings are both set, then that one wins. >> void setEnableAllWarnings(bool Val) { EnableAllWarnings = Val; } >> - bool getEnableAllWarnngs() const { return EnableAllWarnings; } >> - >> + bool getEnableAllWarnings() const { return EnableAllWarnings; } >> + >> /// \brief When set to true, any warnings reported are issued as errors. >> void setWarningsAsErrors(bool Val) { WarningsAsErrors = Val; } >> bool getWarningsAsErrors() const { return WarningsAsErrors; } >> >> >> _______________________________________________ >> cfe-commits mailing list >> [email protected] >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
