NetworkManager/src/libnmt-newt
Thomas Haller 0b1177cb18
all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses
G_TYPE_CHECK_INSTANCE_CAST() can trigger a "-Wcast-align":

    src/core/devices/nm-device-macvlan.c: In function 'parent_changed_notify':
    /usr/include/glib-2.0/gobject/gtype.h:2421:42: error: cast increases required alignment of target type [-Werror=cast-align]
     2421 | #  define _G_TYPE_CIC(ip, gt, ct)       ((ct*) ip)
          |                                          ^
    /usr/include/glib-2.0/gobject/gtype.h:501:66: note: in expansion of macro '_G_TYPE_CIC'
      501 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
          |                                                                  ^~~~~~~~~~~
    src/core/devices/nm-device-macvlan.h:13:6: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
       13 |     (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_MACVLAN, NMDeviceMacvlan))
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~

Avoid that by using _NM_G_TYPE_CHECK_INSTANCE_CAST().

This can only be done for our internal usages. The public headers
of libnm are not changed.
2022-12-16 10:55:03 +01:00
..
meson.build build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-button-box.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-button-box.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-button.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-button.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-checkbox.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-checkbox.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-component.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-component.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-container.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-container.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-entry-numeric.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-entry-numeric.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-entry.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-entry.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-form.c newt-form: remove escape-exits property 2022-08-25 14:12:07 +02:00
nmt-newt-form.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-grid.c all: fix "-Wcast-align=strict" warnings for GArray casts 2022-12-09 09:15:55 +01:00
nmt-newt-grid.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-hacks.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-hacks.h build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-label.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-label.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-listbox.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-listbox.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-popup.c all: fix "-Wcast-align=strict" warnings for GArray casts 2022-12-09 09:15:55 +01:00
nmt-newt-popup.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-section.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-section.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-separator.c build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-separator.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-stack.c newt: fix validity evaluation for stacks 2022-09-28 09:09:09 +02:00
nmt-newt-stack.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-textbox.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-textbox.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-toggle-button.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-toggle-button.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt-types.h build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-utils.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-newt-utils.h build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-widget.c build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
nmt-newt-widget.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-newt.h build: move "clients/tui/newt/" to "src/libnmt-newt/" 2021-03-02 08:38:26 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

libnmt-newt

A helper library of UI elements on top of libnewt and libnm, for nmtui.