mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-20 16:30:24 -05:00
Import isc/list.h after cmocka to avoid redefinition errors
In file included from diff_test.c:25:
/usr/local/include/cmocka.h:2333:1: error: unknown attribute '_Noreturn' ignored [-Werror,-Wunknown-attributes]
2333 | CMOCKA_NORETURN void _fail(const char * const file, const int line);
| ^~~~~~~~~~~~~~~
/usr/local/include/cmocka.h:129:41: note: expanded from macro 'CMOCKA_NORETURN'
129 | #define CMOCKA_NORETURN __attribute__ ((noreturn))
| ^~~~~~~~
/usr/include/stdnoreturn.h:36:19: note: expanded from macro 'noreturn'
36 | #define noreturn _Noreturn
| ^~~~~~~~~
This commit is contained in:
parent
da561d6b28
commit
cb96d9c8e2
1 changed files with 3 additions and 2 deletions
|
|
@ -19,13 +19,14 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "isc/list.h"
|
||||
|
||||
#define UNIT_TESTING
|
||||
#include <cmocka.h>
|
||||
|
||||
#include <dns/diff.h>
|
||||
|
||||
/* isc/list.h must be imported after cmocka to avoid redefinition errors */
|
||||
#include <isc/list.h>
|
||||
|
||||
#include <tests/dns.h>
|
||||
|
||||
unsigned char data_1[] = "\006name_1";
|
||||
|
|
|
|||
Loading…
Reference in a new issue