Устаревший макрос ATOMIC_VAR_INIT

Изменения в новых версиях / C17

#include <stdatomic.h>

// *** before: ***
//C11: an atomic variable was initialised through a macro
atomic_int hitsOld = ATOMIC_VAR_INIT(0);
atomic_fetch_add(&hitsOld, 5);

// *** in version C17: ***
//C17 is a bug fix edition with no new features. One of the fixes made
//the macro obsolescent: a plain initialiser does the job
//(C23 removed the macro)
atomic_int hits = 0;
atomic_fetch_add(&hits, 5);
//hits is 5

//__STDC_VERSION__ is 201710L under C17 (202311L under C23)
printf("hits is %d\n", atomic_load(&hits));