gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Apache protable runtime 1.4
c89 and compiling in -m32 mode
代码:
apr_time_t time_msecs = 0;
time_msecs = apr_time_as_msec(apr_time_now());
printf("Time in msecs [ %lu ]\n", time_msecs);
我收到以下警告:
format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘apr_time_t’ [-Wformat]
除了铸造。这种类型(apr_time_t)的正确格式说明符是什么?
非常感谢您的任何建议,