Skip to content

Commit 4ae1dbb

Browse files
No more diagnostic ignore
1 parent b428cba commit 4ae1dbb

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Src/HALAL/Services/Time/Scheduler.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,13 @@ void Scheduler::insert_sorted(uint8_t id) {
187187
void Scheduler::remove_sorted(uint8_t id) {
188188
uint64_t nibble_lsb = 0x1111'1111'1111'1111ULL;
189189

190-
#pragma GCC diagnostic push
191-
#pragma GCC diagnostic ignored "-Wuninitialized"
192-
193190
// pattern = nibble_lsb * id (para obtener id en cada nibble)
194191
uint32_t pattern_32 = id + (id << 4);
195192
pattern_32 = pattern_32 + (pattern_32 << 8);
196193
pattern_32 = pattern_32 + (pattern_32 << 16);
197194
uint64_t pattern = pattern_32;
198195
((uint32_t*)&pattern)[1] = pattern_32;
199196

200-
#pragma GCC diagnostic pop
201-
202197
// diff becomes 0xid..id_0_id..id where 0 is the nibble where id is in sorted_task_ids
203198
uint64_t diff = Scheduler::sorted_task_ids_ ^ pattern;
204199

0 commit comments

Comments
 (0)