File recutils-1.7-fix_implicit_declarations.patch of Package gnu-recutils
Index: recutils-1.7/torture/rec-parser/rec-parse-record-str.c
===================================================================
--- recutils-1.7.orig/torture/rec-parser/rec-parse-record-str.c
+++ recutils-1.7/torture/rec-parser/rec-parse-record-str.c
@@ -29,6 +29,7 @@
#include <check.h>
#include <rec.h>
+#include <stdlib.h>
/*-
* Test: rec_parse_record_str_nominal
Index: recutils-1.7/torture/rec-parser/rec-parse-record.c
===================================================================
--- recutils-1.7.orig/torture/rec-parser/rec-parse-record.c
+++ recutils-1.7/torture/rec-parser/rec-parse-record.c
@@ -29,6 +29,7 @@
#include <check.h>
#include <rec.h>
+#include <stdlib.h>
/*-
* Test: rec_parse_record_nominal
Index: recutils-1.7/torture/rec-writer/rec-write-comment-str.c
===================================================================
--- recutils-1.7.orig/torture/rec-writer/rec-write-comment-str.c
+++ recutils-1.7/torture/rec-writer/rec-write-comment-str.c
@@ -29,6 +29,7 @@
#include <check.h>
#include <rec.h>
+#include <stdlib.h>
/*-
* Test: rec_write_comment_str_nominal
Index: recutils-1.7/torture/rec-writer/rec-write-field-name-str.c
===================================================================
--- recutils-1.7.orig/torture/rec-writer/rec-write-field-name-str.c
+++ recutils-1.7/torture/rec-writer/rec-write-field-name-str.c
@@ -29,6 +29,7 @@
#include <check.h>
#include <rec.h>
+#include <stdlib.h>
/*-
* Test: rec_write_field_name_str_nominal
Index: recutils-1.7/torture/rec-writer/rec-write-field-str.c
===================================================================
--- recutils-1.7.orig/torture/rec-writer/rec-write-field-str.c
+++ recutils-1.7/torture/rec-writer/rec-write-field-str.c
@@ -29,6 +29,7 @@
#include <check.h>
#include <rec.h>
+#include <stdlib.h>
/*-
* Test: rec_write_field_str_nominal
Index: recutils-1.7/src/rec-sex-tab.c
===================================================================
--- recutils-1.7.orig/src/rec-sex-tab.c
+++ recutils-1.7/src/rec-sex-tab.c
@@ -63,6 +63,9 @@
/* Substitute the variable and function names. */
#define yyparse sexparse
+/* Until gh#openSUSE/post-build-checks#14 is fixed */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
#define yylex sexlex
#define yyerror sexerror
#define yylval sexlval
@@ -1486,7 +1489,7 @@ yybackup:
yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
-
+#pragma GCC diagnostic pop
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
yyn += yytoken;