Commit 202895c
Per Larsen
trusty: Don't generate errors for new lints in clang/LLVM 19
clang/LLVM 19 triggers a new lint (-Wunused-but-set-variable) when
building Parcel.cpp for Trusty because `BINDER_WITH_KERNEL_IPC` is not
defined. Trusty neededs to roll to clang 19 to match the version of
LLVM used to build Rust 1.82.
The lints are raised because some variables are set but unused whenever
BINDER_WITH_KERNEL_IPC is undefined. Since the lints are not surfacing
actual problems, silence them by adding no-op uses.
Bug: 390243478
Test: Treehugger
Test: build Trusty with prebuilt clang-r536225
Change-Id: Ib45a21b79ca87f5467b67d0d9179cdfb2e4c03311 parent 52b4e75 commit 202895c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
619 | 620 | | |
620 | 621 | | |
621 | 622 | | |
| |||
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| 801 | + | |
800 | 802 | | |
801 | 803 | | |
802 | 804 | | |
| |||
839 | 841 | | |
840 | 842 | | |
841 | 843 | | |
| 844 | + | |
842 | 845 | | |
843 | 846 | | |
844 | | - | |
| 847 | + | |
845 | 848 | | |
846 | 849 | | |
847 | 850 | | |
| |||
879 | 882 | | |
880 | 883 | | |
881 | 884 | | |
| 885 | + | |
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
| |||
971 | 975 | | |
972 | 976 | | |
973 | 977 | | |
| 978 | + | |
974 | 979 | | |
975 | 980 | | |
976 | 981 | | |
| |||
1061 | 1066 | | |
1062 | 1067 | | |
1063 | 1068 | | |
| 1069 | + | |
1064 | 1070 | | |
1065 | 1071 | | |
1066 | 1072 | | |
| |||
2690 | 2696 | | |
2691 | 2697 | | |
2692 | 2698 | | |
| 2699 | + | |
2693 | 2700 | | |
2694 | 2701 | | |
2695 | 2702 | | |
| |||
0 commit comments