chuan-yun / Molten

php probe for zipkin and opentracing
Apache License 2.0
793 stars 160 forks source link

fix build warnings #27

Closed remicollet closed 6 years ago

remicollet commented 7 years ago
/work/GIT/Molten/molten.c: Dans la fonction « frame_build »:
/work/GIT/Molten/molten.c:852:9: attention : variable « i » set but not used [-Wunused-but-set-variable]
     int i;
         ^
/work/GIT/Molten/molten.c:751:12: attention : variable « args » set but not used [-Wunused-but-set-variable]
     zval **args;
            ^~~~
In file included from /usr/include/php/main/php.h:39:0,
                 from /work/GIT/Molten/molten.c:21:

/usr/include/php/Zend/zend_API.h:173:76: attention : « entry_time » may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v) (module_name##_globals.v)
                                                                            ^
/work/GIT/Molten/molten.c:288:14: note : « entry_time » was declared here
     uint64_t entry_time;
              ^~~~~~~~~~