leave a hint for clang scan-build
authorRobin Gareus <robin@gareus.org>
Sat, 5 Sep 2015 16:11:15 +0000 (18:11 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 5 Sep 2015 17:16:50 +0000 (19:16 +0200)
libs/audiographer/private/gdither/gdither.cc

index 75e16d7863535f7ad30986d9579453b42f3d2988..98d31c44c2cd7bb34f0ab4e2d408b7ffea67c9c2 100644 (file)
@@ -43,6 +43,7 @@
 #include <stdlib.h>
 #endif
 
+#include <assert.h>
 #include <sys/types.h>
 
 /* Lipshitz's minimally audible FIR, only really works for 46kHz-ish signals */
@@ -197,6 +198,7 @@ inline static void gdither_innner_loop(const GDitherType dt,
            break;
        case GDitherShaped:
            /* Save raw value for error calculations */
+           assert (ss);
            ideal = tmp;
 
            /* Run FIR and add white noise */