Details
Description
I'm seeing a compiler warning that results in a compilation error when using --enable-strict:
../../../examples/c/ex_smoke.c: In function ‘main’:
|
../../../examples/c/ex_smoke.c:48:2: error: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Werror=unused-result]
|
(void)system("rm -rf WT_HOME && mkdir WT_HOME");
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
cc1: all warnings being treated as errors
|
We should handle an error elegantly.