Skip to content

Commit d727792

Browse files
committed
Silence gcc warning -Wsign-compare
TODO: fix source the actual cause of the warning: source/common.c:344:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
1 parent b1ad088 commit d727792

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
else:
1919
kernel41 = None
2020

21-
CFLAGS = ['-Wall', '-Werror', '-Wextra', '-Wno-missing-field-initializers']
21+
CFLAGS = ['-Wall', '-Werror', '-Wextra', '-Wno-missing-field-initializers', '-Wno-sign-compare']
2222

2323
classifiers = ['Development Status :: 3 - Alpha',
2424
'Operating System :: POSIX :: Linux',

source/common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ BBIO_err get_pwm_key(const char *input, char *key)
337337
return BBIO_INVARG;
338338
}
339339

340+
// TODO: fix warning
341+
// source/common.c:344:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
340342
BBIO_err get_adc_ain(const char *key, unsigned int *ain)
341343
{
342344
*ain = lookup_ain_by_key(key);

0 commit comments

Comments
 (0)