Include the tests and apps directories at the _end_, since order in the

cmake rules matters, and fix compile warnings now that we're building
those sources with all the regular flags.
This commit is contained in:
Eric Haszlakiewicz
2022-05-30 14:33:16 +00:00
parent 86b46cac07
commit 6ba1adf8ef
7 changed files with 171 additions and 171 deletions

View File

@@ -82,7 +82,7 @@ static int parseit(int fd, int (*callback)(struct json_object *))
int parse_end = json_tokener_get_parse_end(tok);
if (obj == NULL && jerr != json_tokener_continue)
{
char *aterr = (start_pos + parse_end < sizeof(buf)) ?
const char *aterr = (start_pos + parse_end < (int)sizeof(buf)) ?
&buf[start_pos + parse_end] : "";
fflush(stdout);
int fail_offset = total_read - ret + start_pos + parse_end;
@@ -158,7 +158,6 @@ static void usage(const char *argv0, int exitval, const char *errmsg)
int main(int argc, char **argv)
{
json_object *new_obj;
int opt;
while ((opt = getopt(argc, argv, "fhns")) != -1)