Skip to content

Commit f8ce817

Browse files
committed
remove gcc diag push and pop pragma
1 parent 051db39 commit f8ce817

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Include/pyport.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,9 @@ extern "C" {
584584
#endif
585585

586586
#ifndef _Py_NO_SANITIZE_ADDRESS
587-
#pragma GCC diagnostic push
588-
#pragma GCC diagnostic ignored "-Wstringop-truncation"
587+
_Py_COMP_DIAG_PUSH
589588
# define _Py_NO_SANITIZE_ADDRESS
590-
#pragma GCC diagnostic pop
589+
_Py_COMP_DIAG_POP
591590
#endif
592591
#ifndef _Py_NO_SANITIZE_THREAD
593592
# define _Py_NO_SANITIZE_THREAD

0 commit comments

Comments
 (0)