| Run: | 43521388434 |
| Check: | main: bugprone-* |
| Status: | ok |
| Time: | 1s |
| Warnings: | 144 (TP 0, FP 0, unclassified 144) |
| Source: | andrewrk/libsoundio/blob/b810bf2e9c4afc822c4843322cd08f7b36668109 |
| Verdict | Location | Message |
|---|---|---|
| - | example/sio_list_devices.c:129:28 | repeated branch body in conditional chain |
| - | example/sio_microphone.c:65:61 | 2 adjacent parameters of 'read_callback' of similar type ('int') are easily swapped by mistake |
| - | example/sio_microphone.c:81:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:90:34 | performing an implicit widening conversion to type '__size_t' (aka 'unsigned long') of a multiplication performed in type 'int' |
| - | example/sio_microphone.c:102:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:114:64 | 2 adjacent parameters of 'write_callback' of similar type ('int') are easily swapped by mistake |
| - | example/sio_microphone.c:131:22 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:141:22 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:153:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:167:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:211:37 | repeated branch body in conditional chain |
| - | example/sio_microphone.c:235:38 | 'atof' used to convert a string to a floating-point value, but function will not report conversion errors; consider using 'strtod' instead |
| - | example/sio_microphone.c:346:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:361:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:366:20 | narrowing conversion from 'double' to 'int' |
| - | example/sio_microphone.c:371:22 | narrowing conversion from 'double' to 'int' |
| - | example/sio_microphone.c:375:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_microphone.c:378:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_record.c:55:61 | 2 adjacent parameters of 'read_callback' of similar type ('int') are easily swapped by mistake |
| - | example/sio_record.c:75:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_record.c:86:34 | performing an implicit widening conversion to type '__size_t' (aka 'unsigned long') of a multiplication performed in type 'int' |
| - | example/sio_record.c:97:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_record.c:137:37 | repeated branch body in conditional chain |
| - | example/sio_record.c:259:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_record.c:275:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_sine.c:33:12 | narrowing conversion from 'double' to 'int16_t' (aka 'short') |
| - | example/sio_sine.c:40:12 | narrowing conversion from 'double' to 'int32_t' (aka 'int') |
| - | example/sio_sine.c:45:12 | narrowing conversion from 'double' to 'float' |
| - | example/sio_sine.c:57:64 | 2 adjacent parameters of 'write_callback' of similar type ('int') are easily swapped by mistake |
| - | example/sio_sine.c:67:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_sine.c:88:18 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_sine.c:123:32 | repeated branch body in conditional chain |
| - | example/sio_sine.c:147:31 | 'atof' used to convert a string to a floating-point value, but function will not report conversion errors; consider using 'strtod' instead |
| - | example/sio_sine.c:149:35 | 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead |
| - | example/sio_sine.c:240:14 | an assignment within an 'if' condition is bug-prone |
| - | example/sio_sine.c:256:14 | an assignment within an 'if' condition is bug-prone |
| - | src/atomics.h:70:45 | macro argument should be enclosed in parentheses |
| - | src/atomics.h:71:62 | macro argument should be enclosed in parentheses |
| - | src/atomics.h:72:54 | macro argument should be enclosed in parentheses |
| - | src/atomics.h:73:60 | macro argument should be enclosed in parentheses |
| - | src/atomics.h:74:71 | macro argument should be enclosed in parentheses |
| - | src/atomics.h:75:57 | macro argument should be enclosed in parentheses |
| - | src/channel_layout.c:440:5 | potential uncovered code path; add a default label |
| - | src/channel_layout.c:440:5 | switching on non-enum value without default case may not cover all cases |
| - | src/channel_layout.c:459:29 | narrowing conversion from '__size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined |
| - | src/dummy.c:59:29 | narrowing conversion from 'double' to 'long' |
| - | src/dummy.c:60:30 | narrowing conversion from 'long' to signed type 'int' is implementation-defined |
| - | src/dummy.c:107:29 | narrowing conversion from 'double' to 'long' |
| - | src/dummy.c:108:30 | narrowing conversion from 'long' to signed type 'int' is implementation-defined |
| - | src/dummy.c:191:23 | narrowing conversion from 'double' to 'int' |
| - | src/dummy.c:192:14 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:221:14 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:240:30 | result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' |
| - | src/dummy.c:270:21 | result of integer division used in a floating point context; possible loss of precision |
| - | src/dummy.c:306:23 | narrowing conversion from 'double' to 'int' |
| - | src/dummy.c:307:14 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:336:14 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:354:30 | result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' |
| - | src/dummy.c:378:21 | result of integer division used in a floating point context; possible loss of precision |
| - | src/dummy.c:474:18 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:479:18 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:520:18 | an assignment within an 'if' condition is bug-prone |
| - | src/dummy.c:526:18 | an assignment within an 'if' condition is bug-prone |
| - | src/list.h:28:5 | macro argument should be enclosed in parentheses |
| - | src/list.h:32:5 | macro argument should be enclosed in parentheses |
| - | src/list.h:35:5 | macro argument should be enclosed in parentheses |
| - | src/list.h:36:5 | macro argument should be enclosed in parentheses |
| - | src/list.h:37:5 | macro argument should be enclosed in parentheses |
| - | src/list.h:55:13 | macro argument should be enclosed in parentheses |
| - | src/os.c:12:9 | declaration uses identifier '_GNU_SOURCE', which is a reserved identifier |
| - | src/os.c:216:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:229:18 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:236:18 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:243:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:296:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:493:20 | narrowing conversion from 'double' to '__syscall_slong_t' (aka 'long') |
| - | src/os.c:497:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:548:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:568:17 | narrowing conversion from 'long' to signed type 'int' is implementation-defined |
| - | src/os.c:600:14 | an assignment within an 'if' condition is bug-prone |
| - | src/os.c:613:31 | narrowing conversion from 'size_t' (aka 'unsigned long') to 'double' |
| - | src/os.c:614:12 | narrowing conversion from 'double' to 'size_t' (aka 'unsigned long') |
| - | src/os.c:618:49 | narrowing conversion from 'size_t' (aka 'unsigned long') to 'double' |
| - | src/os.c:694:23 | narrowing conversion from 'size_t' (aka 'unsigned long') to signed type '__off_t' (aka 'long') is implementation-defined |
| - | src/ring_buffer.c:70:17 | narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined |
| - | src/ring_buffer.c:87:14 | an assignment within an 'if' condition is bug-prone |
| - | src/ring_buffer.c:91:20 | narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined |
| - | src/soundio.c:73:1 | multilevel pointer conversion from 'struct SoundIoDevice **' to 'void *', please use explicit cast |
| - | src/soundio.c:100:5 | switch has 2 consecutive identical branches |
| - | src/soundio.c:102:5 | switch has 4 consecutive identical branches |
| - | src/soundio.c:106:5 | switch has 10 consecutive identical branches |
| - | src/soundio.c:116:5 | switch has 2 consecutive identical branches |
| - | src/soundio.c:130:5 | switch has 2 consecutive identical branches |
| - | src/soundio.c:191:14 | an assignment within an 'if' condition is bug-prone |
| - | src/soundio.c:237:14 | an assignment within an 'if' condition is bug-prone |
| - | src/soundio.c:568:45 | narrowing conversion from 'double' to 'float' |
| - | src/soundio.c:735:28 | 2 adjacent parameters of 'compare_layouts' of similar type ('const void *') are easily swapped by mistake |
| - | src/util.h:89:12 | narrowing conversion from 'double' to 'int' |
| - | src/util.h:93:31 | narrowing conversion from 'long long' to 'double' |
| - | test/backend_disconnect_recover.c:53:28 | repeated branch body in conditional chain |
| - | test/backend_disconnect_recover.c:56:27 | 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead |
| - | test/backend_disconnect_recover.c:83:19 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:27:12 | narrowing conversion from 'double' to 'int16_t' (aka 'short') |
| - | test/latency.c:34:12 | narrowing conversion from 'double' to 'int32_t' (aka 'int') |
| - | test/latency.c:39:12 | narrowing conversion from 'double' to 'float' |
| - | test/latency.c:59:14 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:69:64 | 2 adjacent parameters of 'write_callback' of similar type ('int') are easily swapped by mistake |
| - | test/latency.c:80:18 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:94:41 | narrowing conversion from 'double' to 'int' |
| - | test/latency.c:99:35 | narrowing conversion from 'double' to 'float' |
| - | test/latency.c:101:42 | narrowing conversion from 'double' to 'int' |
| - | test/latency.c:118:18 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:137:28 | repeated branch body in conditional chain |
| - | test/latency.c:157:36 | 'atof' used to convert a string to a floating-point value, but function will not report conversion errors; consider using 'strtod' instead |
| - | test/latency.c:167:19 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:210:14 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:213:14 | an assignment within an 'if' condition is bug-prone |
| - | test/latency.c:219:14 | an assignment within an 'if' condition is bug-prone |
| - | test/overflow.c:66:61 | 2 adjacent parameters of 'read_callback' of similar type ('int') are easily swapped by mistake |
| - | test/overflow.c:68:31 | narrowing conversion from 'int' to 'float' |
| - | test/overflow.c:88:18 | an assignment within an 'if' condition is bug-prone |
| - | test/overflow.c:94:47 | narrowing conversion from 'int' to 'float' |
| - | test/overflow.c:96:18 | an assignment within an 'if' condition is bug-prone |
| - | test/overflow.c:121:37 | repeated branch body in conditional chain |
| - | test/overflow.c:157:19 | an assignment within an 'if' condition is bug-prone |
| - | test/overflow.c:208:14 | an assignment within an 'if' condition is bug-prone |
| - | test/overflow.c:213:14 | an assignment within an 'if' condition is bug-prone |
| - | test/underflow.c:45:12 | narrowing conversion from 'double' to 'int16_t' (aka 'short') |
| - | test/underflow.c:52:12 | narrowing conversion from 'double' to 'int32_t' (aka 'int') |
| - | test/underflow.c:57:12 | narrowing conversion from 'double' to 'float' |
| - | test/underflow.c:72:64 | 2 adjacent parameters of 'write_callback' of similar type ('int') are easily swapped by mistake |
| - | test/underflow.c:92:18 | an assignment within an 'if' condition is bug-prone |
| - | test/underflow.c:103:34 | narrowing conversion from 'double' to 'float' |
| - | test/underflow.c:111:18 | an assignment within an 'if' condition is bug-prone |
| - | test/underflow.c:141:32 | repeated branch body in conditional chain |
| - | test/underflow.c:163:35 | 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead |
| - | test/underflow.c:178:19 | an assignment within an 'if' condition is bug-prone |
| - | test/underflow.c:235:14 | an assignment within an 'if' condition is bug-prone |
| - | test/underflow.c:241:14 | an assignment within an 'if' condition is bug-prone |
| - | test/unit_tests.c:28:61 | 2 adjacent parameters of 'write_callback' of similar type ('int') are easily swapped by mistake |
| - | test/unit_tests.c:120:46 | narrowing conversion from 'double' to 'int' |
| - | test/unit_tests.c:135:37 | narrowing conversion from 'double' to 'int' |
| - | test/unit_tests.c:164:31 | narrowing conversion from 'long' to signed type 'int' is implementation-defined |
| - | test/unit_tests.c:175:28 | narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined |
Generated from 3ddf6fa37f.