Compiler warnings
When compiling the current master I get the following warnings:
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:71:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Unused dummy argument 'minus_slack' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:46:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Unused dummy argument 'my_datetime' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:58:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Unused dummy argument 'plus_slack' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:84:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Unused variable 'ret' declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:84:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Return value 'ret' of function 't_event_is_active' declared at (1) not set [-Wreturn-type]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:112:33:
112 | FUNCTION t_event_is_active(this, my_datetime, plus_slack, minus_slack) result(ret)
| 1
Warning: Unused dummy argument 'this' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:104:69:
104 | FUNCTION t_event_getPrevOccurrenceDatetime(this, my_currentdatetime) RESULT(res)
| 1
Warning: Unused dummy argument 'my_currentdatetime' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_event.inc:97:69:
97 | FUNCTION t_event_getNextOccurrenceDatetime(this, my_currentdatetime) RESULT(res)
| 1
Warning: Unused dummy argument 'my_currentdatetime' at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/src/mtime_t_timedelta.inc:172:50:
172 | TYPE(timedelta), POINTER :: td_tmp
| 1
Warning: Unused variable 'td_tmp' declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/callback_test.f90:29:41:
29 | type(datetime), pointer :: current_date => null()
| 1
Warning: Unused variable ‘current_date’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/callback_test.f90:30:45:
30 | type(timedelta), pointer :: model_time_step => null()
| 1
Warning: Unused variable ‘model_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/comp_weights.f90:191:23:
191 | seconds_in_month = getNoOfSecondsElapsedInMonthDateTime(current_date)
| 1
Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4) at (1) [-Wconversion]
/home/moritz/DKRZ/YAC/mtime/examples/comp_weights.f90:156:18:
156 | my_monlen = real(month_days(m1),wp)
| 1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
/home/moritz/DKRZ/YAC/mtime/examples/comp_weights.f90:167:18:
167 | my_monlen = real(month_days(m1),wp)
| 1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
/home/moritz/DKRZ/YAC/mtime/examples/comp_weights.f90:186:20:
186 | integer :: errno
| 1
Warning: Unused variable ‘errno’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example.f90:34:31:
34 | type(datetime), pointer :: dt
| 1
Warning: Unused variable ‘dt’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example.f90:24:44:
24 | type(datetime), pointer :: start_date_test
| 1
Warning: Unused variable ‘start_date_test’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example.f90:19:38:
19 | type(date), pointer :: test_date_tmp
| 1
Warning: Unused variable ‘test_date_tmp’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example_hl.f90:241:51:
241 | currentEventString = currentEvent%getName()
| 1
Warning: CHARACTER expression will be truncated in assignment (132/512) at (1) [-Wcharacter-truncation]
/home/moritz/DKRZ/YAC/mtime/examples/example_hl.f90:204:19:
204 | logical :: lret
| 1
Warning: Unused variable ‘lret’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example_hl.f90:17:31:
17 | INTEGER :: test_number1, test_number2, test_result
| 1
Warning: Unused variable ‘test_number1’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example_hl.f90:17:45:
17 | INTEGER :: test_number1, test_number2, test_result
| 1
Warning: Unused variable ‘test_number2’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/example_hl.f90:17:58:
17 | INTEGER :: test_number1, test_number2, test_result
| 1
Warning: Unused variable ‘test_result’ declared at (1) [-Wunused-variable]
FCLD example_hl
/usr/bin/ld: warning: example_hl.o: requires executable stack (because the .note.GNU-stack section is executable)
/home/moritz/DKRZ/YAC/mtime/examples/mo_event_manager.f90:118:58:
118 | subroutine getEventComponents(eventString, referenceDate, timeInterval, startDate, endDate)
| 1
Warning: Unused dummy argument ‘referencedate’ at (1) [-Wunused-dummy-argument]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:22:49:
22 | type(timedelta), pointer :: advection_time_step => null()
| 1
Warning: Unused variable ‘advection_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:30:50:
30 | type(timedelta), pointer :: checkpoint_time_step => null()
| 1
Warning: Unused variable ‘checkpoint_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:26:51:
26 | type(timedelta), pointer :: cloud_cover_time_step => null()
| 1
Warning: Unused variable ‘cloud_cover_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:25:50:
25 | type(timedelta), pointer :: convection_time_step => null()
| 1
Warning: Unused variable ‘convection_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:33:48:
33 | type(timedelta), pointer :: coupling_time_step => null()
| 1
Warning: Unused variable ‘coupling_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:21:47:
21 | type(timedelta), pointer :: dynamic_time_step => null()
| 1
Warning: Unused variable ‘dynamic_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:28:46:
28 | type(timedelta), pointer :: gwdrag_time_step => null()
| 1
Warning: Unused variable ‘gwdrag_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:24:49:
24 | type(timedelta), pointer :: radiation_time_step => null()
| 1
Warning: Unused variable ‘radiation_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:31:47:
31 | type(timedelta), pointer :: restart_time_step => null()
| 1
Warning: Unused variable ‘restart_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconatm.f90:27:43:
27 | type(timedelta), pointer :: sso_time_step => null()
| 1
Warning: Unused variable ‘sso_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconoce.f90:25:50:
25 | type(timedelta), pointer :: checkpoint_time_step => null()
| 1
Warning: Unused variable ‘checkpoint_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconoce.f90:28:48:
28 | type(timedelta), pointer :: coupling_time_step => null()
| 1
Warning: Unused variable ‘coupling_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconoce.f90:23:47:
23 | type(timedelta), pointer :: dynamic_time_step => null()
| 1
Warning: Unused variable ‘dynamic_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/iconoce.f90:26:47:
26 | type(timedelta), pointer :: restart_time_step => null()
| 1
Warning: Unused variable ‘restart_time_step’ declared at (1) [-Wunused-variable]
/home/moritz/DKRZ/YAC/mtime/examples/tas.f90:177:11:
177 | step = tq%quotient
| 1
Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4) at (1) [-Wconversion]
/home/moritz/DKRZ/YAC/mtime/examples/test_cf_timeaxis.f90:17:26:
17 | type(julianday) :: epoch = julianday(2404063, 43200000)
| 1
Warning: Unused variable ‘epoch’ declared at (1) [-Wunused-variable]