Re: [PATCH] kunit: constify return of string literals

2025-03-02 Thread Christian Göttsche
On Tue, 26 Nov 2024 at 12:36, Christian Göttsche wrote: > > From: Christian Göttsche > > The function kunit_status_to_ok_not_ok() returns string literals, thus > declare the return value as such. > > Reported by clang: > > ./include/kunit/test.h:143:10: warning: returning 'const char[3]' from

[PATCH] kunit: constify return of string literals

2024-11-25 Thread Christian Göttsche
From: Christian Göttsche The function kunit_status_to_ok_not_ok() returns string literals, thus declare the return value as such. Reported by clang: ./include/kunit/test.h:143:10: warning: returning 'const char[3]' from a function with result type 'char *' discards qualifiers [-Wincompati