]> git.eshelyaron.com Git - emacs.git/commit
Fix format specifier warnings in nsterm.m
authorCharalampos Mitrodimas <charmitro@posteo.net>
Thu, 19 Dec 2024 13:28:05 +0000 (13:28 +0000)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Dec 2024 15:38:53 +0000 (16:38 +0100)
commit7d38e9f22869fcdffa243b38c04b4e2de62ba86f
treeb1fd0d61f343aeb2aaa78e69c4f5adbf5c93948c
parent4c864cfd4e585a82ba69d612bc0dcd3e7adfd28c
Fix format specifier warnings in nsterm.m

Resolve warnings caused by mismatched format specifiers in `NSLog` and
`fprintf` calls.

This was observed when compiled with Clang version
19.1.6 (arm64-apple-darwin).

Warnings fixed:
- "format specifies type 'unsigned int' but the argument has type
  'IOReturn' (aka 'int')"

* src/nsterm.m: Cast `IOReturn` (aka `int`) to `unsigned int` for `%x`
format specifiers in `NSLog`.  (Bug#74971)

(cherry picked from commit ab3888515694f89a24f64e94292c578af86eeaee)
src/nsterm.m