Skip to content
Snippets Groups Projects
Commit 7bd4cdae authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Merge branch 'small_bug_fixes' into 'master'

Small bug fixes

See merge request !23
parents 93b18203 70ef49f8
Branches
Tags
1 merge request!23Small bug fixes
......@@ -53,13 +53,13 @@
#undef __LITTLE_ENDIAN
#endif
#if (__sparc__)
#if defined __sparc__
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
#endif
#endif
#if (__i386__ || __x86_64__)
#if (defined __i386__ || defined __x86_64__)
#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 1234
#endif
......
project('cmp_tool', 'c',
version : '0.11-b1',
version : '0.12-b1',
meson_version : '>= 0.56',
license : 'GPL-2.0',
default_options : ['warning_level=3', 'c_std=gnu99']
......
......@@ -54,7 +54,7 @@ void setUp(void)
static int n;
#if HAS_TIME_H
seed = time(NULL) * getpid();
seed = (unsigned int)(time(NULL) * getpid());
#else
seed = 1;
#endif
......
This diff is collapsed.
......@@ -4,3 +4,17 @@ test_runner_generator = generator(
output: ['@BASENAME@_Runner.c'],
arguments: ['@INPUT@', '@OUTPUT@']
)
# add checkpatch syntax-check target
checkpatch = find_program('checkpatch.pl', 'checkpatch', required : false)
if checkpatch.found()
checkpatch_args = [
'--no-tree', '-f',
'--show-types',
'--color=always',
'--ignore', 'SPDX_LICENSE_TAG,PREFER_DEFINED_ATTRIBUTE_MACRO,EMBEDDED_FILENAME,BLOCK_COMMENT_STYLE,EMBEDDED_FUNCTION_NAME',
]
run_target('syntax-check',
command : [checkpatch, checkpatch_args, main, cmplib_sources])
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment