Page 1 of 1

[Nagios-devel] =?utf-8?q?=5BPATCH=5D_warning=3A_implicit_declarat?=

Posted: Mon Jun 25, 2012 4:27 pm
by Guest
Hello,

Accordingly to feature_test_macros(7):

"NOTE: In order to be effective, a feature test macro must be defined befor=
e including any header files."

As we already define _GNU_SOURCE on config.h, pushing its include to be the=
first will suppress the boring "implicit declaration of function =E2=80=98=
asprintf=E2=80=99" warning message during compilation.

OK? Comments?



--- common/macros.c=09(revision 1973)
+++ common/macros.c=09(working copy)
@@ -22,8 +22,8 @@
*
*************************************************************************=
****/
=20
+#include "../include/config.h"
#include "../include/macros.h"
-#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/statusdata.h"





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]