; Fix flymake tests with GCC 14.

* test/lisp/progmodes/flymake-tests.el (included-c-header-files):
Fix test failure with GCC 14.  (Bug#71749)
This commit is contained in:
Ulrich Müller 2024-06-24 15:20:26 +02:00
parent 96e27c2ecf
commit a769f171e7

View file

@ -174,7 +174,8 @@ SEVERITY-PREDICATE is used to setup
(flymake-tests--with-flymake (flymake-tests--with-flymake
("some-problems.h") ("some-problems.h")
(flymake-goto-next-error) (flymake-goto-next-error)
(should (eq 'flymake-warning (face-at-point))) ;; implicit-int was promoted from warning to error in GCC 14
(should (memq (face-at-point) '(flymake-warning flymake-error)))
(flymake-goto-next-error) (flymake-goto-next-error)
(should (eq 'flymake-error (face-at-point))) (should (eq 'flymake-error (face-at-point)))
(should-error (flymake-goto-next-error nil nil t))) (should-error (flymake-goto-next-error nil nil t)))