dix: fix compiler & analyzer warnings from gcc 14.1
- dix: check for
calloc()
failure in Xi event conversion routines - dix:
PolyText
: fully initializelocal_closure
- dix:
SetFontPath
: don't seterrorValue
on Success - dix:
enterleave.c
: fix implicit fallthrough warnings - dix:
CreateScratchGC
: avoid dereference of pointer we just set to NULL - dix:
InitPredictableAccelerationScheme
: avoid memory leak on failure - dix:
dixChangeWindowProperty
: don't callmemcpy
ifmalloc
failed - dix:
ProcListProperties
: skip unneeded work ifnumProps
is 0 - dix:
HashResourceID
: use unsigned integers for bit shifting - dix:
GetPairedDevice
: check ifGetMaster
returned NULL - dix:
FindBestPixel
: fix implicit fallthrough warning
Gets rid of:
- 1 of 4 [-Wanalyzer-malloc-leak]
- 3 of 6 [-Wanalyzer-null-dereference]
- 2 of 2 [-Wanalyzer-possible-null-argument]
- 12 of 14 [-Wanalyzer-possible-null-dereference]
- 2 of 2 [-Wanalyzer-use-of-uninitialized-value]
- 8 of 8 [-Wimplicit-fallthrough=]
- 1 of 4 [-Wnull-dereference]
- 1 of 1 [-Wshift-negative-value]