[dconf: 4/8] tests: Fix a deprecation warning about source definitions



commit 637c54a0195baa1756c338131327e4d593578375
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 9 14:20:45 2018 +0100

    tests: Fix a deprecation warning about source definitions
    
    /usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE" [-Wcpp]
     # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 tests/client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/client.c b/tests/client.c
index 175fd9e..6390438 100644
--- a/tests/client.c
+++ b/tests/client.c
@@ -1,4 +1,4 @@
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 #include "../client/dconf-client.h"
 #include "../engine/dconf-engine.h"
 #include "dconf-mock.h"


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