build: enable GCC warnings

Enable a bunch of warnings that help keep the code robust, portable and
maintainable.

Notably, the following desirable warnings cannot be enabled because of
pending issues in the code:

Wconversion
Wsign-conversion
Wnull-dereference
Wshadow

Tested by building and running the unit tests.

Change-Id: I75627056ca9e8fd475aced172bf54983b6737bf4
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
1 file changed
tree: a9eb435f69bc5d140429b1134558e24f41423282
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. subprojects/
  5. .clang-format
  6. .gitignore
  7. LICENSE
  8. meson.build
  9. meson.options
  10. OWNERS
  11. README.md
README.md

The Mapper

This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it in the docs repository.

Prerequisites

Non-OpenBMC build dependencies are:

  • meson/ninja
  • boost
  • libsystemd
  • systemd
  • tinyxml2

Build

meson build && ninja -C build

Run Unit Tests

meson build && ninja -C build test

Clean the repository

rm -rf build