summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-10-21 15:24:18 +0200
committerKay Sievers <kay@vrfy.org>2013-10-21 15:46:00 +0200
commitdf28bc0836ad6a79cb537ad0b463819738088f3e (patch)
tree5f60b455f0f3e65df99292764e3cd3f0a53b6887 /src/core
parentd1f0e886e1407ab50834127ce52710e1aff13938 (diff)
build-sys: use -Og instead of -O0 to catch warnings
$ touch src/core/dbus.c; make CFLAGS=-O0 make --no-print-directory all-recursive Making all in . CC src/core/libsystemd_core_la-dbus.lo CCLD libsystemd-core.la $ touch src/core/dbus.c; make CFLAGS=-Og make --no-print-directory all-recursive Making all in . CC src/core/libsystemd_core_la-dbus.lo src/core/dbus.c: In function 'init_registered_system_bus': src/core/dbus.c:798:18: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized] dbus_free(id); ^ CCLD libsystemd-core.la -Og Optimize debugging experience. -Og enables optimizations that do not interfere with debugging. It should be the optimization level of choice for the standard edit-compile-debug cycle, offering a reasonable level of optimization while maintaining fast compilation and a good debugging experience.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/machine-id-setup.c2
-rw-r--r--src/core/manager.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c
index 18e015fe7f..1b55da7e56 100644
--- a/src/core/machine-id-setup.c
+++ b/src/core/machine-id-setup.c
@@ -153,7 +153,7 @@ static int generate(char id[34]) {
int machine_id_setup(void) {
_cleanup_close_ int fd = -1;
int r;
- bool writable;
+ bool writable = false;
struct stat st;
char id[34]; /* 32 + \n + \0 */
diff --git a/src/core/manager.c b/src/core/manager.c
index 01db2b0be9..60c22e31d7 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2062,7 +2062,7 @@ void manager_dispatch_bus_query_pid_done(
int manager_open_serialization(Manager *m, FILE **_f) {
char *path = NULL;
- int fd;
+ int fd = -1;
FILE *f;
assert(_f);