[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:
Chris Wilson 2009-07-29 16:17:36 +01:00
parent 8c1aed17ca
commit 8c6ecfe648

View file

@ -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;