NoiseByNorthwest / php-spx

A simple & straight-to-the-point PHP profiling extension with its built-in web UI
GNU General Public License v3.0
2.14k stars 83 forks source link

Make compilation succeed with gnu90 #146

Closed giulianoriccio closed 4 years ago

giulianoriccio commented 4 years ago

Fixes the following compilation error (see #121):

src/spx_resource_stats-linux.c: In function 'spx_resource_stats_own_rss': src/spx_resource_stats-linux.c:118:5: error: 'for' loop initial declarations are only allowed in C99 mode for (size_t i = 0; i < sizeof(context.lg_buf); i++) { ^ src/spx_resource_stats-linux.c:118:5: note: use option -std=c99 or -std=gnu99 to compile your code

NoiseByNorthwest commented 4 years ago

Thanks, I'll add the -std=gnu90 flag in order to avoid this kind of issue in the future.