ObjFW  Check-in [299216faf1]

Overview
Comment:Ignore -Warray-parameter for generated linklib
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | amiga-library
Files: files | file ages | folders
SHA3-256: 299216faf17a7cf5dbd5bf991e128961ef64f731909bb86ef0c183c7deddba4c
User & Date: js on 2022-11-15 22:30:37
Other Links: branch diff | manifest | tags
Context
2022-11-15
22:31
amiga-library.xml: Fix typo check-in: 2a89141502 user: js tags: amiga-library
22:30
Ignore -Warray-parameter for generated linklib check-in: 299216faf1 user: js tags: amiga-library
22:26
Fix linklib/init.m check-in: 0784b353da user: js tags: amiga-library
Changes

Modified generators/library/LinkLibGenerator.m from [148a289b20] to [ca3e727268].

81
82
83
84
85
86
87



88
89
90
91
92
93
94
				    include.stringValue];

	[_impl writeFormat: @"\n"
			    @"extern struct Library *%@;\n"
			    @"\n",
			    libBase];




	functions = [_library elementsForName: @"function"];
	for (OFXMLElement *function in functions) {
		OFString *name =
		    [function attributeForName: @"name"].stringValue;
		OFString *returnType =
		    [function attributeForName: @"return-type"].stringValue;
		OFArray OF_GENERIC(OFXMLElement *) *arguments =







>
>
>







81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
				    include.stringValue];

	[_impl writeFormat: @"\n"
			    @"extern struct Library *%@;\n"
			    @"\n",
			    libBase];

	[_impl writeString:
	    @"#pragma GCC diagnostic ignored \"-Warray-parameter\"\n\n"];

	functions = [_library elementsForName: @"function"];
	for (OFXMLElement *function in functions) {
		OFString *name =
		    [function attributeForName: @"name"].stringValue;
		OFString *returnType =
		    [function attributeForName: @"return-type"].stringValue;
		OFArray OF_GENERIC(OFXMLElement *) *arguments =

Modified src/linklib/linklib.m from [072abb4450] to [1d41ffceae].

33
34
35
36
37
38
39


40
41
42
43
44
45
46
#import "OFSocket.h"
#import "OFTLSStream.h"
#import "OFStrPTime.h"
#import "OFString.h"
#import "OFZIPArchiveEntry.h"

extern struct Library *ObjFWBase;



bool
OFInit(unsigned int version, struct OFLibC *_Nonnull libc, FILE *_Nonnull *_Nonnull sF)
{
#if defined(OF_AMIGAOS_M68K)
	register struct Library *a6 __asm__("a6") = ObjFWBase;
	(void)a6;







>
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#import "OFSocket.h"
#import "OFTLSStream.h"
#import "OFStrPTime.h"
#import "OFString.h"
#import "OFZIPArchiveEntry.h"

extern struct Library *ObjFWBase;

#pragma GCC diagnostic ignored "-Warray-parameter"

bool
OFInit(unsigned int version, struct OFLibC *_Nonnull libc, FILE *_Nonnull *_Nonnull sF)
{
#if defined(OF_AMIGAOS_M68K)
	register struct Library *a6 __asm__("a6") = ObjFWBase;
	(void)a6;

Modified src/runtime/linklib/linklib.m from [0c00bc31d2] to [85b07a3adb].

17
18
19
20
21
22
23


24
25
26
27
28
29
30

#include "config.h"

#import "ObjFWRT.h"
#import "private.h"

extern struct Library *ObjFWRTBase;



bool
objc_init(unsigned int version, struct objc_libc *libc)
{
#if defined(OF_AMIGAOS_M68K)
	register struct Library *a6 __asm__("a6") = ObjFWRTBase;
	(void)a6;







>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#include "config.h"

#import "ObjFWRT.h"
#import "private.h"

extern struct Library *ObjFWRTBase;

#pragma GCC diagnostic ignored "-Warray-parameter"

bool
objc_init(unsigned int version, struct objc_libc *libc)
{
#if defined(OF_AMIGAOS_M68K)
	register struct Library *a6 __asm__("a6") = ObjFWRTBase;
	(void)a6;