osmo-ggsn/gtp
Vadim Yanitskiy bf69ddbfef gtp: use OSMO_ASSERT() in gtp_new()
When using built-in static_assert() [1], gcc v12.2.1 fails:

In file included from gsn.c:27:
gsn.c: In function 'gtp_new':
gsn.c:444:54: error: expression in static assertion is not constant
  444 |         osmo_static_assert(gtp_T_defs[0].default_val != 0, first_default_val_not_zero);
      |                                                      ^

The reason is likely that gtp_T_defs[] is not const, so it cannot
be assert()ed statically.  With the current osmo_static_assert()
implementation, this assert does nothing.  One can change the
gtp_T_defs[0].default_val to 0 and the code will still compile.

Change-Id: Ia8af1736b63d501661046fe70befe5bbabc1045a
Related: [1] libosmocore.git I5ca34bc14c05e8c38c721d7df33feb1c6c41c76e
2023-02-27 17:07:26 +07:00
..
Makefile.am Bump version: 1.9.0.10-4fac-dirty → 1.10.0 2023-02-07 14:29:49 +01:00
gsn.c gtp: use OSMO_ASSERT() in gtp_new() 2023-02-27 17:07:26 +07:00
gsn.h gtp: Introduce VTY configurable GTP timer X3 2022-11-04 11:21:25 +01:00
gtp.c gtp: Introduce VTY configurable GTP timer X3 2022-11-04 11:21:25 +01:00
gtp.h Split gsn_t related APIs out of gtp.{c,h} 2022-11-02 18:41:34 +01:00
gtpie.c cosmetic: gtpie.c: Fix trailing whitespace 2021-05-03 17:24:30 +02:00
gtpie.h gtpie.h: Add IE identifier definitions up to 29.60 v11.8.0 Release 11 2017-10-14 07:49:15 +02:00
lookupa.c Convert all code to Linux coding style 2011-11-02 13:06:18 +01:00
lookupa.h Convert all code to Linux coding style 2011-11-02 13:06:18 +01:00
pdp.c Minor: remove code duplication 2020-10-12 13:11:26 +02:00
pdp.h pdp: constify param in pdp_count_secondary() 2019-08-28 11:14:57 +02:00
queue.c libgtp: Remove packets in tx queue belonging pdp being freed 2019-08-23 14:38:56 +02:00
queue.h libgtp: Define retransmit QUEUE_SIZE relative to PDP_MAX (increase) 2022-03-01 12:39:08 +01:00