[PATCH] umdns: fix compilation with GCC 10

Petr Štetiar ynezz at true.cz
Mon Aug 31 05:35:46 EDT 2020


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



More information about the openwrt-devel mailing list