[PATCH] libasn1c[master]: Fix compiler warning

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
Fri Oct 27 20:10:04 UTC 2017


Review at  https://gerrit.osmocom.org/4462

Fix compiler warning

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

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


  git pull ssh://gerrit.osmocom.org:29418/libasn1c refs/changes/62/4462/1

diff --git a/src/REAL.c b/src/REAL.c
index e179152..2994b74 100644
--- a/src/REAL.c
+++ b/src/REAL.c
@@ -3,7 +3,7 @@
  * Redistribution and modifications are permitted subject to BSD license.
  */
 #define	_ISOC99_SOURCE		/* For ilogb() and quiet NAN */
-#define	_BSD_SOURCE		/* To reintroduce finite(3) */
+#define	_DEFAULT_SOURCE		/* To reintroduce finite(3) */
 #if	defined(__alpha)
 #include <sys/resource.h>	/* For INFINITY */
 #endif

-- 
To view, visit https://gerrit.osmocom.org/4462
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I442e60413b3bee6d365cd5df672a558d68998670
Gerrit-PatchSet: 1
Gerrit-Project: libasn1c
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list