mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-01 02:07:57 +00:00
Silence overzealous -Wunused-result warnings on GCC
This commit is contained in:
@@ -160,7 +160,7 @@ string gen_latex(presmode mode, string s, int res) {
|
||||
string filename = format("latex-cache/%08X.png", hash);
|
||||
if(mode == pmStartAll) {
|
||||
if(!file_exists(filename)) {
|
||||
system("mkdir latex-cache");
|
||||
hr::ignore(system("mkdir latex-cache"));
|
||||
FILE *f = fopen("latex-cache/rogueviz-latex.tex", "w");
|
||||
fprintf(f,
|
||||
"\\documentclass[border=2pt]{standalone}\n"
|
||||
@@ -172,9 +172,9 @@ string gen_latex(presmode mode, string s, int res) {
|
||||
"\\end{varwidth}\n"
|
||||
"\\end{document}\n", s.c_str());
|
||||
fclose(f);
|
||||
system("cd latex-cache; pdflatex rogueviz-latex.tex");
|
||||
hr::ignore(system("cd latex-cache; pdflatex rogueviz-latex.tex"));
|
||||
string pngline = "cd latex-cache; pdftopng -r " + its(res) + " rogueviz-latex.pdf t";
|
||||
system(pngline.c_str());
|
||||
hr::ignore(system(pngline.c_str()));
|
||||
rename("latex-cache/t-000001.png", filename.c_str());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user