]> git.sesse.net Git - nageru/commitdiff
Fix some GCC 8 warnings.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 7 Nov 2018 22:19:07 +0000 (23:19 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 7 Nov 2018 22:28:02 +0000 (23:28 +0100)
midi_mapper.h
timecode_renderer.cpp
video_encoder.cpp

index ac3578b1a98c32e9f4e6969c73e14af00ddab854..42bf19a64aeb68388fe41722bf1727d4dcde1431 100644 (file)
@@ -27,6 +27,8 @@ typedef struct _snd_seq snd_seq_t;
 // Interface for receiving interpreted controller messages.
 class ControllerReceiver {
 public:
+       virtual ~ControllerReceiver() {}
+
        // All values are [0.0, 1.0].
        virtual void set_locut(float value) = 0;
        virtual void set_limiter_threshold(float value) = 0;
index d42020aa7eb0d48cb138b3d631459e00573d567c..a923acd4f3554d1a6d653d9e7ca045dbd24d4dd3 100644 (file)
@@ -122,7 +122,7 @@ string TimecodeRenderer::get_timecode_text(double pts, unsigned frame_num)
        unsigned stream_time_min = stream_time % 60;
        unsigned stream_time_hour = stream_time / 60;
 
-       char timecode_text[256];
+       char timecode_text[512];
        snprintf(timecode_text, sizeof(timecode_text), "Nageru - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
                clock_text, msecs, stream_time_hour, stream_time_min, stream_time_sec, stream_time_ms, frame_num);
        return timecode_text;
index 2ce5580fec3f456d33a1ed81f5fdf015b3c02ad2..6344b8c6a04a89e0fe6e9e312999a2ad449ab93f 100644 (file)
@@ -34,7 +34,7 @@ string generate_local_dump_filename(int frame)
        tm now_tm;
        localtime_r(&now, &now_tm);
 
-       char timestamp[256];
+       char timestamp[64];
        strftime(timestamp, sizeof(timestamp), "%F-%T%z", &now_tm);
 
        // Use the frame number to disambiguate between two cuts starting