[PATCH] umdns: fix compilation with GCC 10

Rosen Penev rosenp at gmail.com
Mon Aug 31 16:51:47 EDT 2020



> On Aug 31, 2020, at 9:41 AM, Hauke Mehrtens <hauke at hauke-m.de> wrote:
> 
> 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.
Yes. But it fails on mips and mvebu.
> 
> Hauke
> 



More information about the openwrt-devel mailing list