mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Fix compiling on older gcc
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
6d97b2894c
commit
0e801e3471
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
// strncpy(str, src1, len1) intentional truncates the null byte from src1.
|
||||
// strncpy(str+len1, src2, len2) uses bound depends on the source argument,
|
||||
// but str is allocated with len1+len2+1, so this strncpy can't overflow
|
||||
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||
#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
|
||||
|
|
Loading…
Reference in a new issue