mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
From 260bd7c8cfe9c40e49cc04b5eea87786b1ea0e57 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Sun, 8 Jun 2014 19:35:53 +0200
|
|
Subject: Remove compiler options unknown to gcc2.
|
|
|
|
|
|
diff --git a/Makefile.am.inc b/Makefile.am.inc
|
|
index fec591b..21aec1f 100644
|
|
--- a/Makefile.am.inc
|
|
+++ b/Makefile.am.inc
|
|
@@ -1,2 +1,2 @@
|
|
-AM_CFLAGS = -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
|
+AM_CFLAGS = -Wall -Wwrite-strings -std=gnu9x -D_GNU_SOURCE -D_REENTRANT
|
|
|
|
--
|
|
2.13.1
|
|
|
|
|
|
From e2f2dca5eb135051cbf4e3533b314509185e698b Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Sun, 8 Jun 2014 21:08:43 +0200
|
|
Subject: Avoid c99ism to make gcc2 happy.
|
|
|
|
|
|
diff --git a/json_tokener.c b/json_tokener.c
|
|
index 9a76293..4734fed 100644
|
|
--- a/json_tokener.c
|
|
+++ b/json_tokener.c
|
|
@@ -354,10 +354,11 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
|
|
{
|
|
int size_inf;
|
|
int is_negative = 0;
|
|
+ char *infbuf;
|
|
|
|
printbuf_memappend_fast(tok->pb, &c, 1);
|
|
size_inf = json_min(tok->st_pos+1, json_inf_str_len);
|
|
- char *infbuf = tok->pb->buf;
|
|
+ infbuf = tok->pb->buf;
|
|
if (*infbuf == '-')
|
|
{
|
|
infbuf++;
|
|
--
|
|
2.13.1
|
|
|