Change in osmo-pcap[master]: Fix compiler warning about deprecated _BSD_SOURCE

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Jan 26 16:40:56 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/12701


Change subject: Fix compiler warning about deprecated _BSD_SOURCE
......................................................................

Fix compiler warning about deprecated _BSD_SOURCE

On (at least) Debian unstable I'm seeing the following compiler
warninig:

/usr/include/features.h:184: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"

Apparently this was deprecated in glibc 2.20 released in 2014 (!)

Change-Id: I826189dec4107e7c3e8cf4c013316ef3014b7857
---
M src/osmo_client_core.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/01/12701/1

diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c
index 6414552..a56ebb4 100644
--- a/src/osmo_client_core.c
+++ b/src/osmo_client_core.c
@@ -20,7 +20,7 @@
  *
  */
 
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 #include <osmo-pcap/osmo_pcap_client.h>
 #include <osmo-pcap/common.h>
 

-- 
To view, visit https://gerrit.osmocom.org/12701
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I826189dec4107e7c3e8cf4c013316ef3014b7857
Gerrit-Change-Number: 12701
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190126/bb3d5549/attachment.htm>


More information about the gerrit-log mailing list