Commit 63789c2
Explicitly define on_output_devices_changed with void
For some reason this makes -fsanitize=function happy and gets rid of:
cras/src/tests/stream_apm_unittest.cc:438:3: runtime error: call to function (unknown) through pointer to incorrect function type 'void (*)()'
(/var/cache/portage/media-sound/adhd/06f28d5772d1404a84774cbe385179a7/execroot/adhd/bazel-out/amd64-dbg/bin/cras/src/tests/stream_apm_unittest+0xef248): note: (unknown) defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior cras/src/tests/stream_apm_unittest.cc:438:3
Error: cras/src/tests/stream_apm_unittest: failed with exit code 1
BUG=b:445167544
TEST=FEATURES='-usersandbox test' emerge-amd64-generic adhd
Change-Id: I6d4746210063f26c940f39e05bb3570781bb1f3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/6968558
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Li-Yu Yu <aaronyu@google.com>1 parent a00a8ce commit 63789c2
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | | - | |
| 1110 | + | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
| |||
0 commit comments