[PATCH] umdns: fix compilation with GCC 10
Hauke Mehrtens
hauke at hauke-m.de
Mon Aug 31 12:41:14 EDT 2020
On 8/31/20 11:35 AM, Petr Štetiar wrote:
> Rosen Penev <rosenp at gmail.com> [2020-08-31 02:06:50]:
>
>> I compile with target GCC 10, not host.
>
> Then as you can see its probably some issue with GCC 10 for that target (which
> one is that?) or something like that, because I'm not able to trigger that
> with my GCC 10. Your proposed fix seems not correct as well, as blob_name is
> `const char*`, so I don't see a point of replacing strncpy with memcpy just to
> silence (most likely) bogus compiler error. If it's not false positive, then
> it needs to be fixed properly, not silenced by memcpy usage.
>
> -- ynezz
Hi,
I am seeing the same error when compiling for the lantiq target (big
endian MIPS) with GCC 10.2.0 on current master.
Kevin already did a change in this part of the code to fix a compile
problem with GCC 10 on x86_64:
https://git.openwrt.org/?p=project/mdnsd.git;a=commitdiff;h=eadfa26a5cf31e27f551c37c1362983e9db37c4d
This commit is in master.
Hauke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200831/9b4bcaf7/attachment-0001.sig>
More information about the openwrt-devel
mailing list