mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
libapparmor: swig: remove instance of label followed by declaration
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
87b60e4e94
commit
af883bb706
1 changed files with 7 additions and 1 deletions
|
@ -258,7 +258,13 @@ extern int aa_is_enabled(void);
|
||||||
* allocation uninitialized (0) != SWIG_NEWOBJ
|
* allocation uninitialized (0) != SWIG_NEWOBJ
|
||||||
*/
|
*/
|
||||||
%#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
%#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||||
static_assert(SWIG_NEWOBJ != 0, "SWIG_NEWOBJ is 0");
|
/*
|
||||||
|
* Some older versions of SWIG place this right after a goto label
|
||||||
|
* This would then be a label followed by a declaration, a C23 extension (!)
|
||||||
|
* To ensure this works for older SWIG versions and older compilers,
|
||||||
|
* make this a block element with curly braces.
|
||||||
|
*/
|
||||||
|
{static_assert(SWIG_NEWOBJ != 0, "SWIG_NEWOBJ is 0");}
|
||||||
%#endif
|
%#endif
|
||||||
if ($1 != NULL && alloc_tracking$argnum != NULL) {
|
if ($1 != NULL && alloc_tracking$argnum != NULL) {
|
||||||
for (Py_ssize_t i=0; i<seq_len$argnum; i++) {
|
for (Py_ssize_t i=0; i<seq_len$argnum; i++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue