mirror of https://github.com/pvnis/srsRAN_4G.git
fix -Wstringop-trunc in phy_common helper
gcc8 added a -Wstringop-truncation warning that flags an issue in phy_common because we are copying a str to another str without explicitly saying it's null-terminated. we could turn off the warning using a pragma in the code but I guess it's safe to just null-terminate after copying manually [1] https://stackoverflow.com/questions/50198319/gcc-8-wstringop-truncation-what-is-the-good-practicemaster
parent
31673d1797
commit
0aff9d9d26
Loading…
Reference in New Issue