mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 02:28:02 +02:00
[perf] Remove the warning about failing to open a directory
The warning is repeated in the error message if we fail to find any traces, and now that we search a path it is likely that some elements do not exist. Thus we annoy the user with irrelevant, non-fatal warnings. Still looking for suggestions for the most appropriate home for the system wide cairo-traces dir...
This commit is contained in:
parent
8c1aed17ca
commit
8c6ecfe648
1 changed files with 1 additions and 3 deletions
|
|
@ -655,10 +655,8 @@ cairo_perf_trace_dir (cairo_perf_t *perf,
|
|||
int num_traces = 0;
|
||||
|
||||
dir = opendir (dirname);
|
||||
if (dir == NULL) {
|
||||
fprintf (stderr, "Failed to open directory '%s'\n", dirname);
|
||||
if (dir == NULL)
|
||||
return 0;
|
||||
}
|
||||
|
||||
while ((de = readdir (dir)) != NULL) {
|
||||
char *trace;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue