
Dear Developers,
With the compile flags used in current and future Ubuntu builds, there is a problem in demos/ppl_lpsol/ppl_lpsol.c:
ppl_lpsol.c:271: error: format not a string literal and no format arguments ppl_lpsol.c:272: error: format not a string literal and no format arguments ppl_lpsol.c:273: error: format not a string literal and no format arguments
This is best solved by using
fprintf(stdout, "%s", usage_string1);
and so forth.
Thanks, Michael

Michael Tautschnig wrote:
With the compile flags used in current and future Ubuntu builds, there is a problem in demos/ppl_lpsol/ppl_lpsol.c:
ppl_lpsol.c:271: error: format not a string literal and no format arguments ppl_lpsol.c:272: error: format not a string literal and no format arguments ppl_lpsol.c:273: error: format not a string literal and no format arguments
This is best solved by using
fprintf(stdout, "%s", usage_string1);
and so forth.
Hi Michael,
thanks for the report. Can you tell us which are the compile flags you are talking about? This way we can make sure no other problem like that one remain or are introduced by mistake. Cheers,
Roberto
P.S. We are also working on the other issues.

thanks for the report. Can you tell us which are the compile flags you are talking about? This way we can make sure no other problem like that one remain or are introduced by mistake. Cheers,
Oops, sorry, I should have attached the log:
make[2]: Entering directory `/root/ppl-0.10~pre35/demos/ppl_lpsol' i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../interfaces/C -pedantic -std=gnu89 -Werror -g -O2 -frounding-math -Wall -g -O2 -W -Wall -MT ppl_lpsol.o -MD -MP -MF .deps/ppl_lpsol.Tpo -c -o ppl_lpsol.o ppl_lpsol.c cc1: warnings being treated as errors ppl_lpsol.c: In function 'process_options': ppl_lpsol.c:271: error: format not a string literal and no format arguments ppl_lpsol.c:272: error: format not a string literal and no format arguments ppl_lpsol.c:273: error: format not a string literal and no format arguments make[2]: *** [ppl_lpsol.o] Error 1
This happens when using Ubuntu's gcc (Ubuntu 4.3.2-1ubuntu10) 4.3.2. For some reason, it doesn't happen in Debian, probably Ubuntu people added some more default warnings to -Wall (see also https://wiki.ubuntu.com/CompilerFlags).
Thanks for your prompt responses, Michael
participants (2)
-
Michael Tautschnig
-
Roberto Bagnara