In preparation for the upcoming v2.0 release, I have been building libcgroup and libcgroup-tools on various distros.
This patchset resolves most of the warnings in libcgroup when running newer versions of gcc and bison. Note that I did not fix this warning in parse.y: src/parse.y: warning: 4 shift/reduce conflicts [-Wconflicts-sr] The group_conf and template_conf (and two sequences within them) all resolve to the same pattern - ID '{' namevalue_conf '}'. bison is correctly resolving these collisions at present, and a fix would likely be higher risk than it's worth. I'll probably revisit this during the abstraction layer development. libcgroup code to resolve warnings is available here: https://github.com/drakenclimber/libcgroup/tree/issues/fix-warnings libcgroup-tests code to resolve warnings is available here: https://github.com/drakenclimber/libcgroup-tests/tree/issues/fix-warnings Continuous integration and automated tests are passing: https://github.com/drakenclimber/libcgroup/runs/2458125669 Code coverage remained essentially the same at 51.6%: https://coveralls.io/builds/39190322 Tom Hromatka (16): api.c: Fix strncpy() truncation warning api.c: Fix strncpy() truncation warning api.c: Fix strncpy() truncation warning api.c: Fix strncpy() truncation warning config.c: Fix strncpy() truncation warning config.c: Fix strncpy() truncation warning config.c: Fix strncpy() truncation warning tools: Fix strncpy() truncation warning cgget: Fix strncpy() truncation warning lssubsys: Fix strncpy() truncation warning lssubsys: Fix strncpy() truncation warning lssubsys: Fix strncpy() truncation warning lscgroup: Fix strncpy() truncation warning lscgroup: Fix strncpy() truncation warning lscgroup: Fix strncpy() truncation warning parse.y: Fix nonterminal %type warnings src/api.c | 5 +++++ src/config.c | 3 +++ src/parse.y | 4 ++-- src/tools/cgget.c | 1 + src/tools/lscgroup.c | 3 +++ src/tools/lssubsys.c | 4 ++++ src/tools/tools-common.c | 4 ++-- 7 files changed, 20 insertions(+), 4 deletions(-) -- 2.25.1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel