ObjFW  Check-in [797e00a919]

Overview
Comment:Add more -W flags.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 797e00a919a5af8075cb4c5bbfee467a66934f7a8ee36496c583080a89e940d1
User & Date: js on 2011-02-17 17:12:06
Other Links: manifest | tags
Context
2011-02-17
17:23
Add support for file:// to OFURL. check-in: 245f519a50 user: js tags: trunk
17:12
Add more -W flags. check-in: 797e00a919 user: js tags: trunk
2011-02-10
22:32
Oops. Broke the check for asprintf. Fixed. check-in: 37e4b2edc0 user: js tags: trunk
Changes

Modified configure.ac from [97930c093e] to [0e9467fbe8].

453
454
455
456
457
458
459
460

461
462
463
464
465
466
467
AS_IF([test x"$objc_runtime" = x"Apple"], [
	AC_CHECK_HEADER(Foundation/NSObject.h, [
		AC_SUBST(FOUNDATION_COMPAT_M, "foundation-compat.m")
	])
])

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Werror"


	AC_MSG_CHECKING(whether gcc has bug objc/27438)
	AC_TRY_COMPILE([
		#import <objc/objc.h>

		@interface OFConstantString
		{







|
>







453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
AS_IF([test x"$objc_runtime" = x"Apple"], [
	AC_CHECK_HEADER(Foundation/NSObject.h, [
		AC_SUBST(FOUNDATION_COMPAT_M, "foundation-compat.m")
	])
])

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wcast-align -Wpointer-arith"
	OBJCFLAGS="$OBJCFLAGS -Werror"

	AC_MSG_CHECKING(whether gcc has bug objc/27438)
	AC_TRY_COMPILE([
		#import <objc/objc.h>

		@interface OFConstantString
		{

Modified src/OFHTTPRequest.h from [49c4f75181] to [964ebc0e8e].

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/**
 * \return The request type for the HTTP request
 */
- (of_http_request_type_t)requestType;

/**
 * Sets the query string for the HTTP request.
 * Only used for GET and HEAD requests!
 *
 * \param qs The query string for the HTTP request
 */
- (void)setQueryString: (OFString*)qs;

/**
 * \return The query string for the HTTP request







<







73
74
75
76
77
78
79

80
81
82
83
84
85
86
/**
 * \return The request type for the HTTP request
 */
- (of_http_request_type_t)requestType;

/**
 * Sets the query string for the HTTP request.

 *
 * \param qs The query string for the HTTP request
 */
- (void)setQueryString: (OFString*)qs;

/**
 * \return The query string for the HTTP request

Modified src/base64.m from [cd2f786421] to [e05586f6d2].

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

	return ret;
}

BOOL
of_base64_decode(OFDataArray *data, const char *str, size_t len)
{
	uint8_t *buf = (uint8_t*)str;
	size_t i;

	if ((len & 3) != 0)
		return NO;

	for (i = 0; i < len; i += 4) {
		uint32_t sb = 0;







|







88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

	return ret;
}

BOOL
of_base64_decode(OFDataArray *data, const char *str, size_t len)
{
	const uint8_t *buf = (const uint8_t*)str;
	size_t i;

	if ((len & 3) != 0)
		return NO;

	for (i = 0; i < len; i += 4) {
		uint32_t sb = 0;