mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
misc/tlci: Fix build with llvm15
Approved by: portmgr (blanket)
This commit is contained in:
parent
2f1109c7f1
commit
77f8df9a0d
@ -16,6 +16,14 @@ GL_COMMIT= 4a3dd51a872f36a513f06efa475922259dee91f1
|
||||
PLIST_FILES= ${PREFIX}/bin/tlci \
|
||||
${PREFIX}/man/man8/tlci.8.gz
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
#post-patch:
|
||||
#.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
|
||||
# @${REINPLACE_CMD} -e 's|^CFLAGS\+=|CFLAGS\+= -Wno-error=strict-prototypes |g' \
|
||||
# ${WRKSRC}/Makefile
|
||||
#.endif
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tlci
|
||||
|
||||
|
11
misc/tlci/files/patch-src_evaluator.c
Normal file
11
misc/tlci/files/patch-src_evaluator.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/evaluator.c.orig 2023-06-11 19:02:44 UTC
|
||||
+++ src/evaluator.c
|
||||
@@ -192,7 +192,7 @@ void eval_init(jmp_buf* error_handler)
|
||||
memcpy(&on_error, error_handler, sizeof(jmp_buf));
|
||||
}
|
||||
/*********************************************************************************/
|
||||
-string eval_get_error()
|
||||
+string eval_get_error(void)
|
||||
{
|
||||
return (string) { .begin = error_msg, .len = strlen(error_msg) };
|
||||
}
|
11
misc/tlci/files/patch-src_heap.c
Normal file
11
misc/tlci/files/patch-src_heap.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/heap.c.orig 2023-06-11 18:59:24 UTC
|
||||
+++ src/heap.c
|
||||
@@ -34,7 +34,7 @@
|
||||
static heap_cell_t* pool_alloc(heap_t*);
|
||||
static void pool_swipe(heap_t*);
|
||||
/******************************************************************************/
|
||||
-heap_t* heap_create()
|
||||
+heap_t* heap_create(void)
|
||||
{
|
||||
heap_t* heap = calloc(1, sizeof(heap_t));
|
||||
if (!heap) {
|
20
misc/tlci/files/patch-src_lexer.l
Normal file
20
misc/tlci/files/patch-src_lexer.l
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/lexer.l.orig 2023-06-11 19:08:30 UTC
|
||||
+++ src/lexer.l
|
||||
@@ -49,7 +49,7 @@ void reset_lexer(void)
|
||||
YY_FLUSH_BUFFER;
|
||||
}
|
||||
/*********************************************************************************/
|
||||
-heap_cell_t* get_token_pos()
|
||||
+heap_cell_t* get_token_pos(void)
|
||||
{
|
||||
return heap_alloc_token_pos(tlci_heap,
|
||||
from_cstring(string_dup(filename)),
|
||||
@@ -61,7 +61,7 @@ void yyerror(char *s)
|
||||
printf("%s:%d:%d: \033[31m%s:\033[0m Unexpected '%s'\n", filename, yylineno, tokenpos, s, yytext);
|
||||
}
|
||||
/*********************************************************************************/
|
||||
-void switch_to_stdin()
|
||||
+void switch_to_stdin(void)
|
||||
{
|
||||
filename = "<interactive>";
|
||||
yyin = stdin;
|
11
misc/tlci/files/patch-src_parser.y
Normal file
11
misc/tlci/files/patch-src_parser.y
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/parser.y.orig 2023-06-11 19:00:49 UTC
|
||||
+++ src/parser.y
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <tlci/heap.h>
|
||||
#include <tlci/string.h>
|
||||
extern heap_t* tlci_heap;
|
||||
-extern int yylex();
|
||||
+extern int yylex(void);
|
||||
extern void yyerror(const char*);
|
||||
#define mkAP(f, a) \
|
||||
heap_alloc_ap(tlci_heap, f, a)
|
11
misc/tlci/files/patch-src_tlci.c
Normal file
11
misc/tlci/files/patch-src_tlci.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/tlci.c.orig 2023-06-11 19:01:46 UTC
|
||||
+++ src/tlci.c
|
||||
@@ -46,7 +46,7 @@ extern void switch_to_stdin(void);
|
||||
extern FILE* yyin;
|
||||
|
||||
/*********************************************************************************/
|
||||
-static void on_quit()
|
||||
+static void on_quit(void)
|
||||
{
|
||||
heap_destroy(tlci_heap);
|
||||
}
|
Loading…
Reference in New Issue
Block a user