Fix "Dead nested assignment" static analyzer warning in monthFromDayInYear()
[WebKit.git] / Source / WTF / ChangeLog
index ebd293e..0e44007 100644 (file)
@@ -1,3 +1,14 @@
+2020-03-30  David Kilzer  <ddkilzer@apple.com>
+
+        Fix "Dead nested assignment" static analyzer warning in monthFromDayInYear()
+        <https://webkit.org/b/209718>
+
+        Reviewed by Alex Christensen.
+
+        * wtf/DateMath.h:
+        (WTF::monthFromDayInYear): Change the last check so it doesn't
+        assign a value to `step`, thus avoiding the warning.
+
 2020-03-28  Simon Fraser  <simon.fraser@apple.com>
 
         Add a ScrollLatching log channel and improve some logging functionality