-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/{snap-confine,libsnap-confine-private,snap-shutdown}: cleanup low-level C bits #4153
cmd/{snap-confine,libsnap-confine-private,snap-shutdown}: cleanup low-level C bits #4153
Commits on Nov 6, 2017
-
cmd: enable more compiler warnings
Bump the number of warning issue by compiler. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for c3f581a - Browse repository at this point
Copy the full SHA c3f581aView commit details -
snap-confine, system-shutdown, libsnap-confine-private: use void when…
… symbol takes no paramters, make symbols static Make sure to use void in parameter list when a function takes no paramters. Otherwise the symbol can take any number of parameters. Where possible, make symbols static. Fixes 'function declaration isn’t a prototype [-Wstrict-prototypes]' warnings. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for c6ceaeb - Browse repository at this point
Copy the full SHA c6ceaebView commit details -
snap-confine: fix comparison of signed with unsigned
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1e407d3 - Browse repository at this point
Copy the full SHA 1e407d3View commit details -
libsnap-confine-private: fix comparison of signed with unsigned
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 668b676 - Browse repository at this point
Copy the full SHA 668b676View commit details -
libsnap-confine-private: reformat F() macro, include do-while braces
Reformat the F() macro to make it readable. Make sure to include braces braces in do-while statement. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 70d6c93 - Browse repository at this point
Copy the full SHA 70d6c93View commit details -
libsnap-confine-private: do not use nested functions
Nested functions are not supported outside of gcc. Refactor the code using this feature. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fd8f5fb - Browse repository at this point
Copy the full SHA fd8f5fbView commit details -
tests/unit/c-unit-tests: rename to unit-tests-gcc to indicate that te…
…sts are gcc specific Rename the test to indicate that it is GCC specific Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 706a213 - Browse repository at this point
Copy the full SHA 706a213View commit details -
tests/unit/c-unit-tests-clang: unit tests of C code built with clang
Introduce a test that builds the low-level C bits with clang and runs unit tests. This should ensure code can also be built with clang and we get an early heads up if gcc specific bits are incoming. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 597029b - Browse repository at this point
Copy the full SHA 597029bView commit details -
cmd: properly set CHECK_CFLAGS for libsnap-confine-private.a and its …
…unit tests Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for b6d40fc - Browse repository at this point
Copy the full SHA b6d40fcView commit details -
cmd/libsnap-confine-private: cleanup remaining declaration isn't prot…
…otype warnings Fixes 'function declaration isn’t a prototype [-Wstrict-prototypes]' warnings. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 2ed4577 - Browse repository at this point
Copy the full SHA 2ed4577View commit details -
cmd: make enabled C compiler warnings become error when building with…
… unit tests This will allow us to catch warnings as part of CI pipeline Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for efd8081 - Browse repository at this point
Copy the full SHA efd8081View commit details -
cmd/autogen: allow passing of build directory through BUILD_DIR env v…
…ariable Allow passing of desired build directory path in BUILD_DIR environment variable. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 59cfa18 - Browse repository at this point
Copy the full SHA 59cfa18View commit details -
tests/unit/c-unit-tests-{gcc,clang}: refactor execute step to use aut…
…ogen.sh Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 5e34947 - Browse repository at this point
Copy the full SHA 5e34947View commit details
Commits on Nov 7, 2017
-
cmd/snap-confine/apparmor-support: fix implicit fallthrough
ENOENT case is not expected to fall through. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for f352040 - Browse repository at this point
Copy the full SHA f352040View commit details