Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604666 - fix compiler warnings
Summary: fix compiler warnings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL: https://bugs.debian.org/cgi-bin/bugre...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 16:32 UTC by Benda Xu
Modified: 2017-05-24 13:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
0061-fix-compiler-warnings.patch (0061-fix-compiler-warnings.patch,2.26 KB, patch)
2017-01-04 16:34 UTC, Benda Xu
Details | Diff
0062-fix-compiler-warnings.patch (0062-fix-compiler-warnings.patch,1.79 KB, patch)
2017-01-04 16:34 UTC, Benda Xu
Details | Diff
0063-fix-compiler-warnings.patch (0063-fix-compiler-warnings.patch,2.75 KB, patch)
2017-01-04 16:35 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2017-01-04 16:32:48 UTC
0061-fix-compiler-warnings.patch fixes CPPFLAGS and removes unused variables.
0062-fix-compiler-warnings.patch fixes indentation issues making the compiler
issue a warning. Please review these changes to make sure I've made the right
corrections.
Finally 0063-fix-compiler-warnings.patch fixes warnings about unused variables
on glibc-based systems using the already defined macro _unused in helpers.h.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2017-01-04 16:34:01 UTC
Created attachment 458752 [details, diff]
0061-fix-compiler-warnings.patch

fixes CPPFLAGS and removes unused variables.
Comment 2 Benda Xu gentoo-dev 2017-01-04 16:34:38 UTC
Created attachment 458754 [details, diff]
0062-fix-compiler-warnings.patch

fixes indentation issues making the compiler issue a warning.
Comment 3 Benda Xu gentoo-dev 2017-01-04 16:35:17 UTC
Created attachment 458756 [details, diff]
0063-fix-compiler-warnings.patch

fixes warnings about unused variables on glibc-based systems using the already defined macro _unused in helpers.h.
Comment 4 William Hubbs gentoo-dev 2017-01-04 23:29:16 UTC
The following commits that take care of this have been added to git:

https://github.com/openrc/openrc/commit/7056b56
https://github.com/openrc/openrc/commit/074d90f
https://github.com/openrc/openrc/commit/92325b4
https://github.com/openrc/openrc/commit/c304522

These will be part of OpenRC-0.24, and possibly 0.23.1.

I could not remove the unused variables you mentioned because they are
now being used.

Thanks much.

William
Comment 5 Benda Xu gentoo-dev 2017-01-18 06:24:38 UTC
Great!  Thanks Bill.