LINBIT / drbd-utils

DRBD userspace utilities (for 9.x, 8.4, 8.3)
GNU General Public License v2.0
78 stars 46 forks source link

user/v9: fix -Wimplicit-function-declaration #41

Open thesamesam opened 8 months ago

thesamesam commented 8 months ago

GCC 14 and Clang 16 make this fatal:

gcc -g -O2 -Wall -I../../drbd-headers -I.. -I. -I../shared    -c -o drbdadm_main.o drbdadm_main.c
drbdadm_main.c: In function ‘main’:
drbdadm_main.c:3501:17: error: implicit declaration of function ‘include_file’ [-Wimplicit-function-declaration]
 3501 |                 include_file(f, config_test);
      |                 ^~~~~~~~~~~~