ObjFW  Check-in [8ed68c3f28]

Overview
Comment:Only ignore -Warray-parameter with GCC >= 11
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | amiga-library
Files: files | file ages | folders
SHA3-256: 8ed68c3f282cc2347aa303edb9a4ee4cf8052594cd880d183d8ca804c4abce25
User & Date: js on 2022-11-17 17:26:51
Other Links: branch diff | manifest | tags
Context
2022-11-17
17:30
src/amiga-library.xml: Fix typo Leaf check-in: 333dd5d0ca user: js tags: amiga-library
17:26
Only ignore -Warray-parameter with GCC >= 11 check-in: 8ed68c3f28 user: js tags: amiga-library
17:22
Merge trunk into branch "amiga-library" check-in: c065201231 user: js tags: amiga-library
Changes

Modified generators/library/LinkLibGenerator.m from [ca3e727268] to [223399c150].

82
83
84
85
86
87
88

89


90
91
92
93
94
95
96

	[_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;







>
|
>
>







82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

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

	[_impl writeString:
	    @"#if OF_GCC_VERSION >= 1100\n"
	    @"# pragma GCC diagnostic ignored \"-Warray-parameter\"\n"
	    @"#endif\n"
	    @"\n"];

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

Modified src/linklib/linklib.m from [a0d8bb39b6] to [9977294bf7].

35
36
37
38
39
40
41

42

43
44
45
46
47
48
49
#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)
{
#if defined(OF_AMIGAOS_M68K)
	register struct Library *a6 __asm__("a6") = ObjFWBase;
	(void)a6;







>
|
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#import "OFTLSStream.h"
#import "OFStrPTime.h"
#import "OFString.h"
#import "OFZIPArchiveEntry.h"

extern struct Library *ObjFWBase;

#if OF_GCC_VERSION >= 1100
# pragma GCC diagnostic ignored "-Warray-parameter"
#endif

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

Modified src/runtime/linklib/linklib.m from [a8e65364f9] to [6ac36a70a4].

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;







>
|
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "config.h"

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

extern struct Library *ObjFWRTBase;

#if OF_GCC_VERSION >= 1100
# pragma GCC diagnostic ignored "-Warray-parameter"
#endif

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