make—can I suppress a format-truncation error?
make—can I suppress a format-truncation error? I'm trying to install intel's psm package from source. When I run make , I get this weird error. psm make $ make ... make libpsm_infinipath.so make[1]: Entering directory `/home/kilojoules/psm' cc -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -I. -I/home/kilojoules/psm/include -I/home/kilojoules/psm/mpspawn -I/home/kilojoules/psm/include/linux-x86_64 -c psm_context.c -o psm_context.o cc -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -I. -I/home/kilojoules/psm/include -I/home/kilojoules/psm/mpspawn -I/home/kilojoules/psm/include/linux-x86_64 -c psm_ep.c -o psm_ep.o psm_ep.c: In function '__psm_ep_open': psm_ep.c:1013:27: error: '%1d' directive output may be truncated writing between 1 and 5 bytes into a region of size 4 [-Werror=format-truncation=] snprintf(pvalue, 4, "%1d", ports[0]); ^~~ psm_ep...