Searched hist:"5 db8c792ba479829ff4feb4e3a0ad7b682767ab1" (Results 1 – 2 of 2) sorted by relevance
/openbmc/obmc-console/ |
H A D | log-handler.c | diff 5db8c792ba479829ff4feb4e3a0ad7b682767ab1 Tue Apr 18 07:18:24 CDT 2023 Andrew Jeffery <andrew@aj.id.au> obmc-console: Fix bugprone-implicit-widening-of-multiplication-result
For example:
``` /usr/bin/clang-tidy -checks=-*, bugprone-implicit-widening-of-multiplication-result -export-fixes /tmp/tmpppty3tdm/tmpod_qxcie.yaml -p=build /mnt/host/andrew/home/andrew/src/openbmc/obmc-console/test/test-config-parse-logsize.c ../test/test-config-parse-logsize.c:24:11: error: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result,-warnings-as-errors] { "4k", 4 * 1024, 0 }, ^ ```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I571983c6381fad7a14fb179108d14220f5dfdeca
|
H A D | console-server.c | diff 5db8c792ba479829ff4feb4e3a0ad7b682767ab1 Tue Apr 18 07:18:24 CDT 2023 Andrew Jeffery <andrew@aj.id.au> obmc-console: Fix bugprone-implicit-widening-of-multiplication-result
For example:
``` /usr/bin/clang-tidy -checks=-*, bugprone-implicit-widening-of-multiplication-result -export-fixes /tmp/tmpppty3tdm/tmpod_qxcie.yaml -p=build /mnt/host/andrew/home/andrew/src/openbmc/obmc-console/test/test-config-parse-logsize.c ../test/test-config-parse-logsize.c:24:11: error: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result,-warnings-as-errors] { "4k", 4 * 1024, 0 }, ^ ```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I571983c6381fad7a14fb179108d14220f5dfdeca
|