chiark / gitweb /
build-sys: use -Og instead of -O0 to catch warnings
authorKay Sievers <kay@vrfy.org>
Mon, 21 Oct 2013 13:24:18 +0000 (15:24 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 21 Oct 2013 13:46:00 +0000 (15:46 +0200)
commitdf28bc0836ad6a79cb537ad0b463819738088f3e
tree5f60b455f0f3e65df99292764e3cd3f0a53b6887
parentd1f0e886e1407ab50834127ce52710e1aff13938
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.
autogen.sh
src/core/machine-id-setup.c
src/core/manager.c
src/shared/ask-password-api.c
src/tmpfiles/tmpfiles.c