mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Ignore -Warray-bounds compiler warning in JIT
The out-of-bounds pointer is intentional.
This commit is contained in:
parent
9fadf6d96b
commit
378b79b90c
1 changed files with 7 additions and 0 deletions
|
@ -124,7 +124,14 @@ void dasm_free(Dst_DECL)
|
|||
void dasm_setupglobal(Dst_DECL, void **gl, unsigned int maxgl)
|
||||
{
|
||||
dasm_State *D = Dst_REF;
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
D->globals = gl - 10; /* Negative bias to compensate for locals. */
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
DASM_M_GROW(Dst, int, D->lglabels, D->lgsize, (10+maxgl)*sizeof(int));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue