[libsecret/wip/dueno/build-fixes: 2/2] build: Suppress compiler warning if compiled with G_DISABLE_ASSERT



commit e6881d4ff1260c7308be56f21a9d354d7680dfaa
Author: Daiki Ueno <dueno src gnome org>
Date:   Tue Jan 14 10:13:16 2020 +0100

    build: Suppress compiler warning if compiled with G_DISABLE_ASSERT
    
    This is similar to 0be63575ff47f19cff3688985c7f00e92bc25541 but for
    test-file-collection.c.
    
    Fixes #36.

 libsecret/test-file-collection.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libsecret/test-file-collection.c b/libsecret/test-file-collection.c
index e016d45..512bfb6 100644
--- a/libsecret/test-file-collection.c
+++ b/libsecret/test-file-collection.c
@@ -1,11 +1,15 @@
 
 #include "config.h"
 
+#undef G_DISABLE_ASSERT
+
 #include "egg/egg-testing.h"
 #include "secret-file-collection.h"
 #include "secret-retrievable.h"
 #include "secret-schema.h"
 
+#include <stdlib.h>
+
 typedef struct {
        gchar *directory;
        GMainLoop *loop;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]