Re: [OpenWrt-Devel] [PATCH] uci: Fix Wformat-nonliteral warning

2019-12-03 Thread Jonas Gorski
On Tue, 3 Dec 2019 at 01:54, Rosen Penev wrote: > > A const char * variable is being passed as a format string. Unfortunately, > this is not correct. > > A constant expression needs to be passed so that GCC can determine the > types of the format properly. > > Also fixed a different warning that n

[OpenWrt-Devel] [PATCH] uci: Fix Wformat-nonliteral warning

2019-12-02 Thread Rosen Penev
A const char * variable is being passed as a format string. Unfortunately, this is not correct. A constant expression needs to be passed so that GCC can determine the types of the format properly. Also fixed a different warning that needs a printf attribute. Fixes: error: format not a string li

[OpenWrt-Devel] [PATCH] uci: Fix Wformat-nonliteral warning

2019-11-29 Thread Rosen Penev
A const char * variable is being passed as a format string. Unfortunately, this is not correct. A constant expression needs to be passed so that GCC can determine the types of the format properly. Fixes: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]