adamwill / rpms / openscap

Forked from rpms/openscap 3 years ago
Clone

Blame SOURCES/openscap-1.3.3-remove-useless-warnings.patch

0b628f
diff --git a/src/OVAL/probes/public/probe-api.h b/src/OVAL/probes/public/probe-api.h
0b628f
index 24cf756cb..c1178956f 100644
0b628f
--- a/src/OVAL/probes/public/probe-api.h
0b628f
+++ b/src/OVAL/probes/public/probe-api.h
0b628f
@@ -488,11 +488,9 @@ OSCAP_API SEXP_t *probe_item_create(oval_subtype_t item_subtype, probe_elmatr_t
0b628f
 		SEXP_t *___r;					\
0b628f
 								\
0b628f
 		if ((___r = probe_ent_getval(ent)) == NULL) {	\
0b628f
-			dW("Entity has no value!");		\
0b628f
 			invalid_exp				\
0b628f
 		} else {					\
0b628f
 			if (!SEXP_stringp(___r)) {		\
0b628f
-				dE("Invalid type");		\
0b628f
 				SEXP_free(___r);		\
0b628f
 				invalid_exp			\
0b628f
 			}					\
0b628f
@@ -511,11 +509,9 @@ OSCAP_API SEXP_t *probe_item_create(oval_subtype_t item_subtype, probe_elmatr_t
0b628f
 		SEXP_t *___r;					\
0b628f
 								\
0b628f
 		if ((___r = probe_ent_getval(ent)) == NULL) {	\
0b628f
-			dW("Entity has no value!");		\
0b628f
 			nil_exp;				\
0b628f
 		} else {					\
0b628f
 			if (!SEXP_numberp(___r)) {		\
0b628f
-				dE("Invalid type");		\
0b628f
 				SEXP_free(___r);		\
0b628f
 				invalid_exp;			\
0b628f
 			} else {				\