Skip to content

treewide: Fix many undefined behaviors reported by clang

Corentin Noël requested to merge tintou/undefined-behaviors into main
  • renderer: Replace pointer dereference with simple type cast

All of our types are subclassing pipe_reference so just cast them to use the pipe_reference natively instead of using pointer dereference (and thus relying on an undefined behavior)

  • gallium: Remove u_double_list.h

It has been fully replaced by util/list.h

  • treewide: Replace LIST_FOR_EACH_ENTRY* with list_for_each_entry*

The uppercase variant relies on an undefined behavior, while the lowercase version is making the code look better with less function-wide variables.

Merge request reports