@@ -119,6 +119,7 @@ cc_library(
119
119
cc_library (
120
120
name = "best_fit" ,
121
121
hdrs = ["public/pw_allocator/best_fit.h" ],
122
+ features = ["-conversion_warnings" ],
122
123
strip_include_prefix = "public" ,
123
124
deps = [
124
125
":block_allocator" ,
@@ -132,6 +133,7 @@ cc_library(
132
133
cc_library (
133
134
name = "best_fit_block_allocator" ,
134
135
hdrs = ["public/pw_allocator/best_fit_block_allocator.h" ],
136
+ features = ["-conversion_warnings" ],
135
137
strip_include_prefix = "public" ,
136
138
deps = [
137
139
":best_fit" ,
@@ -143,6 +145,7 @@ cc_library(
143
145
name = "block_allocator" ,
144
146
srcs = ["block_allocator.cc" ],
145
147
hdrs = ["public/pw_allocator/block_allocator.h" ],
148
+ features = ["-conversion_warnings" ],
146
149
implementation_deps = ["//pw_assert:check" ],
147
150
strip_include_prefix = "public" ,
148
151
deps = [
@@ -166,6 +169,7 @@ cc_library(
166
169
cc_library (
167
170
name = "bucket_allocator" ,
168
171
hdrs = ["public/pw_allocator/bucket_allocator.h" ],
172
+ features = ["-conversion_warnings" ],
169
173
strip_include_prefix = "public" ,
170
174
deps = [
171
175
":block_allocator" ,
@@ -179,6 +183,7 @@ cc_library(
179
183
cc_library (
180
184
name = "bucket_block_allocator" ,
181
185
hdrs = ["public/pw_allocator/bucket_block_allocator.h" ],
186
+ features = ["-conversion_warnings" ],
182
187
strip_include_prefix = "public" ,
183
188
deps = [":bucket_allocator" ],
184
189
)
@@ -187,6 +192,7 @@ cc_library(
187
192
name = "buddy_allocator" ,
188
193
srcs = ["buddy_allocator.cc" ],
189
194
hdrs = ["public/pw_allocator/buddy_allocator.h" ],
195
+ features = ["-conversion_warnings" ],
190
196
implementation_deps = [
191
197
"//pw_assert:check" ,
192
198
"//pw_bytes:alignment" ,
@@ -256,6 +262,7 @@ alias(
256
262
cc_library (
257
263
name = "dl_allocator" ,
258
264
hdrs = ["public/pw_allocator/dl_allocator.h" ],
265
+ features = ["-conversion_warnings" ],
259
266
strip_include_prefix = "public" ,
260
267
deps = [
261
268
":block_allocator" ,
@@ -271,6 +278,7 @@ cc_library(
271
278
cc_library (
272
279
name = "dual_first_fit_block_allocator" ,
273
280
hdrs = ["public/pw_allocator/dual_first_fit_block_allocator.h" ],
281
+ features = ["-conversion_warnings" ],
274
282
strip_include_prefix = "public" ,
275
283
deps = [":first_fit" ],
276
284
)
@@ -291,6 +299,7 @@ cc_library(
291
299
cc_library (
292
300
name = "first_fit" ,
293
301
hdrs = ["public/pw_allocator/first_fit.h" ],
302
+ features = ["-conversion_warnings" ],
294
303
strip_include_prefix = "public" ,
295
304
deps = [
296
305
":block_allocator" ,
@@ -304,6 +313,7 @@ cc_library(
304
313
cc_library (
305
314
name = "first_fit_block_allocator" ,
306
315
hdrs = ["public/pw_allocator/first_fit_block_allocator.h" ],
316
+ features = ["-conversion_warnings" ],
307
317
strip_include_prefix = "public" ,
308
318
deps = [":first_fit" ],
309
319
)
@@ -312,12 +322,14 @@ cc_library(
312
322
name = "fragmentation" ,
313
323
srcs = ["fragmentation.cc" ],
314
324
hdrs = ["public/pw_allocator/fragmentation.h" ],
325
+ features = ["-conversion_warnings" ],
315
326
strip_include_prefix = "public" ,
316
327
)
317
328
318
329
cc_library (
319
330
name = "freelist_heap" ,
320
331
hdrs = ["public/pw_allocator/freelist_heap.h" ],
332
+ features = ["-conversion_warnings" ],
321
333
strip_include_prefix = "public" ,
322
334
deps = [
323
335
":bucket_allocator" ,
@@ -341,6 +353,7 @@ cc_library(
341
353
cc_library (
342
354
name = "last_fit_block_allocator" ,
343
355
hdrs = ["public/pw_allocator/last_fit_block_allocator.h" ],
356
+ features = ["-conversion_warnings" ],
344
357
strip_include_prefix = "public" ,
345
358
deps = [":first_fit" ],
346
359
)
@@ -404,6 +417,7 @@ cc_library(
404
417
cc_library (
405
418
name = "tlsf_allocator" ,
406
419
hdrs = ["public/pw_allocator/tlsf_allocator.h" ],
420
+ features = ["-conversion_warnings" ],
407
421
strip_include_prefix = "public" ,
408
422
deps = [
409
423
":block_allocator" ,
@@ -442,6 +456,7 @@ cc_library(
442
456
cc_library (
443
457
name = "worst_fit" ,
444
458
hdrs = ["public/pw_allocator/worst_fit.h" ],
459
+ features = ["-conversion_warnings" ],
445
460
strip_include_prefix = "public" ,
446
461
deps = [
447
462
":block_allocator" ,
@@ -455,6 +470,7 @@ cc_library(
455
470
cc_library (
456
471
name = "worst_fit_block_allocator" ,
457
472
hdrs = ["public/pw_allocator/worst_fit_block_allocator.h" ],
473
+ features = ["-conversion_warnings" ],
458
474
strip_include_prefix = "public" ,
459
475
deps = [
460
476
":config" ,
@@ -468,6 +484,7 @@ cc_library(
468
484
name = "testing" ,
469
485
testonly = True ,
470
486
hdrs = ["public/pw_allocator/testing.h" ],
487
+ features = ["-conversion_warnings" ],
471
488
strip_include_prefix = "public" ,
472
489
deps = [
473
490
":buffer" ,
@@ -489,6 +506,7 @@ cc_library(
489
506
testonly = True ,
490
507
srcs = ["block_allocator_testing.cc" ],
491
508
hdrs = ["public/pw_allocator/block_allocator_testing.h" ],
509
+ features = ["-conversion_warnings" ],
492
510
implementation_deps = [
493
511
"//pw_assert:check" ,
494
512
"//pw_bytes:alignment" ,
@@ -514,6 +532,7 @@ cc_library(
514
532
testonly = True ,
515
533
srcs = ["managed_ptr_testing.cc" ],
516
534
hdrs = ["public/pw_allocator/internal/managed_ptr_testing.h" ],
535
+ features = ["-conversion_warnings" ],
517
536
strip_include_prefix = "public" ,
518
537
deps = [
519
538
":pw_allocator" ,
@@ -559,6 +578,7 @@ cc_library(
559
578
pw_cc_test (
560
579
name = "allocator_as_pool_test" ,
561
580
srcs = ["allocator_as_pool_test.cc" ],
581
+ features = ["-conversion_warnings" ],
562
582
deps = [
563
583
":allocator_as_pool" ,
564
584
":pw_allocator" ,
@@ -569,6 +589,7 @@ pw_cc_test(
569
589
pw_cc_test (
570
590
name = "allocator_test" ,
571
591
srcs = ["allocator_test.cc" ],
592
+ features = ["-conversion_warnings" ],
572
593
deps = [
573
594
":pw_allocator" ,
574
595
":testing" ,
@@ -578,6 +599,7 @@ pw_cc_test(
578
599
pw_cc_test (
579
600
name = "best_fit_test" ,
580
601
srcs = ["best_fit_test.cc" ],
602
+ features = ["-conversion_warnings" ],
581
603
deps = [
582
604
":best_fit" ,
583
605
":best_fit_block_allocator" ,
@@ -589,6 +611,7 @@ pw_cc_test(
589
611
pw_cc_test (
590
612
name = "bucket_allocator_test" ,
591
613
srcs = ["bucket_allocator_test.cc" ],
614
+ features = ["-conversion_warnings" ],
592
615
deps = [
593
616
":block_allocator_testing" ,
594
617
":bucket_allocator" ,
@@ -600,6 +623,7 @@ pw_cc_test(
600
623
pw_cc_test (
601
624
name = "buddy_allocator_test" ,
602
625
srcs = ["buddy_allocator_test.cc" ],
626
+ features = ["-conversion_warnings" ],
603
627
deps = [
604
628
":buddy_allocator" ,
605
629
":fuzzing" ,
@@ -610,6 +634,7 @@ pw_cc_test(
610
634
pw_cc_test (
611
635
name = "buffer_test" ,
612
636
srcs = ["buffer_test.cc" ],
637
+ features = ["-conversion_warnings" ],
613
638
deps = [
614
639
":buffer" ,
615
640
":testing" ,
@@ -622,6 +647,7 @@ pw_cc_test(
622
647
pw_cc_test (
623
648
name = "bump_allocator_test" ,
624
649
srcs = ["bump_allocator_test.cc" ],
650
+ features = ["-conversion_warnings" ],
625
651
deps = [
626
652
":bump_allocator" ,
627
653
":testing" ,
@@ -632,6 +658,7 @@ pw_cc_test(
632
658
pw_cc_test (
633
659
name = "chunk_pool_test" ,
634
660
srcs = ["chunk_pool_test.cc" ],
661
+ features = ["-conversion_warnings" ],
635
662
deps = [
636
663
":chunk_pool" ,
637
664
":testing" ,
@@ -641,6 +668,7 @@ pw_cc_test(
641
668
pw_cc_test (
642
669
name = "dl_allocator_test" ,
643
670
srcs = ["dl_allocator_test.cc" ],
671
+ features = ["-conversion_warnings" ],
644
672
deps = [
645
673
":block_allocator_testing" ,
646
674
":dl_allocator" ,
@@ -651,6 +679,7 @@ pw_cc_test(
651
679
pw_cc_test (
652
680
name = "fallback_allocator_test" ,
653
681
srcs = ["fallback_allocator_test.cc" ],
682
+ features = ["-conversion_warnings" ],
654
683
deps = [
655
684
":fallback_allocator" ,
656
685
":testing" ,
@@ -661,6 +690,7 @@ pw_cc_test(
661
690
pw_cc_test (
662
691
name = "first_fit_test" ,
663
692
srcs = ["first_fit_test.cc" ],
693
+ features = ["-conversion_warnings" ],
664
694
deps = [
665
695
":block_allocator_testing" ,
666
696
":buffer" ,
@@ -676,6 +706,7 @@ pw_cc_test(
676
706
pw_cc_test (
677
707
name = "fragmentation_test" ,
678
708
srcs = ["fragmentation_test.cc" ],
709
+ features = ["-conversion_warnings" ],
679
710
deps = [
680
711
":fragmentation" ,
681
712
":testing" ,
@@ -685,6 +716,7 @@ pw_cc_test(
685
716
pw_cc_test (
686
717
name = "freelist_heap_test" ,
687
718
srcs = ["freelist_heap_test.cc" ],
719
+ features = ["-conversion_warnings" ],
688
720
deps = [
689
721
":freelist_heap" ,
690
722
":testing" ,
@@ -697,6 +729,7 @@ pw_cc_test(
697
729
pw_cc_test (
698
730
name = "layout_test" ,
699
731
srcs = ["layout_test.cc" ],
732
+ features = ["-conversion_warnings" ],
700
733
deps = [
701
734
":pw_allocator" ,
702
735
":testing" ,
@@ -708,6 +741,7 @@ pw_cc_test(
708
741
pw_cc_test (
709
742
name = "libc_allocator_test" ,
710
743
srcs = ["libc_allocator_test.cc" ],
744
+ features = ["-conversion_warnings" ],
711
745
deps = [
712
746
":libc_allocator" ,
713
747
":testing" ,
@@ -723,6 +757,7 @@ pw_cc_test(
723
757
pw_cc_test (
724
758
name = "null_allocator_test" ,
725
759
srcs = ["null_allocator_test.cc" ],
760
+ features = ["-conversion_warnings" ],
726
761
deps = [
727
762
":null_allocator" ,
728
763
":testing" ,
@@ -732,6 +767,7 @@ pw_cc_test(
732
767
pw_cc_test (
733
768
name = "pmr_allocator_test" ,
734
769
srcs = ["pmr_allocator_test.cc" ],
770
+ features = ["-conversion_warnings" ],
735
771
deps = [
736
772
":pmr_allocator" ,
737
773
":testing" ,
@@ -741,6 +777,7 @@ pw_cc_test(
741
777
pw_cc_test (
742
778
name = "shared_ptr_test" ,
743
779
srcs = ["shared_ptr_test.cc" ],
780
+ features = ["-conversion_warnings" ],
744
781
deps = [
745
782
":managed_ptr_testing" ,
746
783
":pw_allocator" ,
@@ -750,6 +787,7 @@ pw_cc_test(
750
787
pw_cc_test (
751
788
name = "synchronized_allocator_test" ,
752
789
srcs = ["synchronized_allocator_test.cc" ],
790
+ features = ["-conversion_warnings" ],
753
791
# TODO: b/358411629 - This test times out on rp2.
754
792
target_compatible_with = select ({
755
793
"@pico-sdk//bazel/constraint:rp2040" : ["@platforms//:incompatible" ],
@@ -777,6 +815,7 @@ pw_cc_test(
777
815
pw_cc_test (
778
816
name = "tlsf_allocator_test" ,
779
817
srcs = ["tlsf_allocator_test.cc" ],
818
+ features = ["-conversion_warnings" ],
780
819
deps = [
781
820
":block_allocator_testing" ,
782
821
":tlsf_allocator" ,
@@ -786,6 +825,7 @@ pw_cc_test(
786
825
pw_cc_test (
787
826
name = "tracking_allocator_test" ,
788
827
srcs = ["tracking_allocator_test.cc" ],
828
+ features = ["-conversion_warnings" ],
789
829
deps = [
790
830
":first_fit" ,
791
831
":metrics" ,
@@ -800,6 +840,7 @@ pw_cc_test(
800
840
pw_cc_test (
801
841
name = "typed_pool_test" ,
802
842
srcs = ["typed_pool_test.cc" ],
843
+ features = ["-conversion_warnings" ],
803
844
deps = [
804
845
":pw_allocator" ,
805
846
":testing" ,
@@ -811,6 +852,7 @@ pw_cc_test(
811
852
pw_cc_test (
812
853
name = "unique_ptr_test" ,
813
854
srcs = ["unique_ptr_test.cc" ],
855
+ features = ["-conversion_warnings" ],
814
856
deps = [
815
857
":managed_ptr_testing" ,
816
858
":pw_allocator" ,
@@ -820,6 +862,7 @@ pw_cc_test(
820
862
pw_cc_test (
821
863
name = "weak_ptr_test" ,
822
864
srcs = ["weak_ptr_test.cc" ],
865
+ features = ["-conversion_warnings" ],
823
866
deps = [
824
867
":managed_ptr_testing" ,
825
868
":pw_allocator" ,
@@ -829,6 +872,7 @@ pw_cc_test(
829
872
pw_cc_test (
830
873
name = "worst_fit_test" ,
831
874
srcs = ["worst_fit_test.cc" ],
875
+ features = ["-conversion_warnings" ],
832
876
deps = [
833
877
":block_allocator_testing" ,
834
878
":worst_fit" ,
0 commit comments