ext/procfs/uptime.h in linux_stat-2.2.3 vs ext/procfs/uptime.h in linux_stat-2.3.0
- old
+ new
@@ -1,5 +1,5 @@
-VALUE uptime_f(VALUE obj) {
+static VALUE uptime_f(volatile VALUE obj) {
FILE *f = fopen("/proc/uptime", "r") ;
if (!f) return Qnil ;
double up_f ;
char status = fscanf(f, "%lf", &up_f) ;