mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 12:36:21 +00:00
revert: remove cmocka 2.0 compatibility workaround
Restore original prof_cmocka.h - the CMOCKA_DISABLE_DEPRECATION_WARNINGS workaround is not needed for this project.
This commit is contained in:
@@ -1,21 +1,5 @@
|
|||||||
/*
|
|
||||||
* Compatibility header for cmocka 1.x and 2.x
|
|
||||||
*
|
|
||||||
* cmocka 2.0 (released Dec 2025) deprecated several macros:
|
|
||||||
* - will_return() -> will_return_int() / will_return_ptr()
|
|
||||||
* - mock_type() -> mock_int() / mock_ptr_type()
|
|
||||||
* - check_expected() -> check_expected_int() / check_expected_ptr()
|
|
||||||
*
|
|
||||||
* This header disables deprecation warnings for backward compatibility
|
|
||||||
* with cmocka 1.x style code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
/* NOTE: CMOCKA_DISABLE_DEPRECATION_WARNINGS removed to test CI failure */
|
|
||||||
|
|
||||||
#include <cmocka.h>
|
#include <cmocka.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user