aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-07-30 09:52:13 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-07-30 09:52:13 +0200
commitd37f4cfe57c98180aac8db7bdc4c0de8881a7953 (patch)
tree0d58b5b2e5f14584f1a30759e2c2688ae2e2acdd /contrib
parent5e8d31abc6f531ef0bc0fc563d5311602a395685 (diff)
rds-saa6588: fix broken tests
gcc-8.1 now warns about things like 'if (1 == (b[0] & 0x08))'. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/rds-saa6588/rds-saa6588.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/rds-saa6588/rds-saa6588.c b/contrib/rds-saa6588/rds-saa6588.c
index 9f40872f..504444ef 100644
--- a/contrib/rds-saa6588/rds-saa6588.c
+++ b/contrib/rds-saa6588/rds-saa6588.c
@@ -116,10 +116,10 @@ main(int argc, char *argv[])
fprintf(stderr,"no signal\r");
continue;
}
- if (1 == (b[0] & 0x08)) {
+ if (b[0] & 0x08) {
fprintf(stderr,"overflow detected\n");
}
- if (1 == (b[0] & 0x04)) {
+ if (b[0] & 0x04) {
fprintf(stderr,"reset detected\n");
}
if (debug)

Privacy Policy