NetworkManager/shared/nm-utils
Lubomir Rintel 356f1131f3 shared/utils: don't warn of unknown warning disables with clang
When pushing a warning disable with clang, always disable
-Wunknown-warning-option first -- it might be that clang wouldn't warn
of what we're trying to disable because it doesn't recognize it in the
first place. That is entierely okay.

With clang-5.0.0:

    CC       libnm/tests/libnm_tests_test_secret_agent-test-secret-agent.o
  In file included from libnm/tests/test-secret-agent.c:29:
  In file included from ./shared/nm-test-libnm-utils.h:23:
  ./shared/nm-utils/nm-test-utils.h:432:3: error: unknown warning group '-Wunused-but-set-variable', ignored [-Werror,-Wunknown-warning-option]
                  NM_PRAGMA_WARNING_DISABLE("-Wunused-but-set-variable")
                  ^
  ./shared/nm-utils/nm-macros-internal.h:223:9: note: expanded from macro 'NM_PRAGMA_WARNING_DISABLE'
          _Pragma(_NM_PRAGMA_WARNING_DO(warning))
          ^
  <scratch space>:204:25: note: expanded from here
   GCC diagnostic ignored "-Wunused-but-set-variable"
                          ^
  1 error generated.

(cherry picked from commit fc4552d391)
2018-01-24 09:55:18 +01:00
..
c-list-util.c c-list: add c_list_sort() 2017-07-25 06:42:14 +02:00
c-list-util.h c-list: add c_list_sort() 2017-07-25 06:42:14 +02:00
c-list.h c-list: re-import latest version of c-list.h from upstream 2017-11-28 12:04:15 +01:00
gsystem-local-alloc.h shared: move shared files to subdirectory "shared/nm-utils/" 2016-06-16 10:45:53 +02:00
nm-dedup-multi.c c-list: re-import latest version of c-list.h from upstream 2017-11-28 12:04:15 +01:00
nm-dedup-multi.h all: extend hash functions with an NMHashState argument 2017-10-18 13:29:22 +02:00
nm-enum-utils.c shared: cast from/to argument to unsigned for GFlags in _nm_utils_enum_get_values() 2017-04-27 18:01:58 +02:00
nm-enum-utils.h libnm: move public nm_utils_enum_*() functions back to libnm-core 2017-04-05 18:38:31 +02:00
nm-glib.h shared: propagate type for g_object_ref() 2017-12-06 10:44:45 +01:00
nm-hash-utils.c shared: fix compilation on 32-bit archictectures 2017-10-26 15:13:40 +02:00
nm-hash-utils.h all: add helper functions for nm_hash_update*() 2017-10-18 13:29:22 +02:00
nm-macros-internal.h shared/utils: don't warn of unknown warning disables with clang 2018-01-24 09:55:18 +01:00
nm-obj.h all: add base object type in "nm-obj.h" 2017-07-05 14:22:10 +02:00
nm-random-utils.c all: use nm_close() instead of close() 2017-11-14 15:17:02 +01:00
nm-random-utils.h shared: split random and hash utils 2017-10-17 20:02:59 +02:00
nm-shared-utils.c shared: fix nm_utils_strsplit_set() to increase buffer size exponentially 2017-11-29 19:15:30 +01:00
nm-shared-utils.h shared: add nm_g_object_set_property_*() helper 2017-11-24 08:29:23 +01:00
nm-test-utils.h tests: add nmtst_assert_connection_has_settings() helper 2017-10-30 21:46:55 +01:00
nm-udev-utils.c libnm: don't cunescape \x00 encoding in nm_udev_utils_property_decode() 2017-05-19 09:46:08 +02:00
nm-udev-utils.h udev: add and use nm_udev_utils_property_decode() function 2017-03-22 12:41:06 +01:00
nm-vpn-editor-plugin-call.h shared: include "gsystem-local-alloc.h" from "nm-glib.h" 2016-06-16 10:45:54 +02:00
nm-vpn-plugin-macros.h shared: add nm_utils_syslog_coerce_from_nm() util 2016-09-19 15:35:33 +02:00
nm-vpn-plugin-utils.c shared: add "nm-utils/nm-vpn-plugin-utils.h" 2016-06-16 10:45:54 +02:00
nm-vpn-plugin-utils.h shared: add "nm-utils/nm-vpn-plugin-utils.h" 2016-06-16 10:45:54 +02:00
siphash24.c all: use siphash24 for hashing 2017-10-18 13:27:02 +02:00
siphash24.h all: use siphash24 for hashing 2017-10-18 13:27:02 +02:00
unaligned.h shared: add unaligned.h 2016-10-14 11:16:13 +02:00