Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings #667

Merged
merged 4 commits into from
Aug 8, 2024
Merged

Fix build warnings #667

merged 4 commits into from
Aug 8, 2024

Conversation

remicollet
Copy link
Contributor

@remicollet remicollet commented Aug 7, 2024

To avoid missing real errors hidden by warning flood.

2 [-Wdeprecated-declarations] are not fixed, because in bundled library

libtool: compile:  g++ -I. -I/work/GIT/pecl-and-ext/pinpoint -I/work/GIT/pecl-and-ext/pinpoint/include -I/work/GIT/pecl-and-ext/pinpoint/main -I/work/GIT/pecl-and-ext/pinpoint -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/work/GIT/pecl-and-ext/pinpoint/common/include -I/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/include -I/work/GIT/pecl-and-ext/pinpoint/common/src -DHAVE_CONFIG_H -O2 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DZEND_COMPILE_DL_EXT=1 -c /work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/lib_json/json_reader.cpp -MMD -MF common/jsoncpp/lib_json/json_reader.dep -MT common/jsoncpp/lib_json/json_reader.lo  -fPIC -DPIC -o common/jsoncpp/lib_json/.libs/json_reader.o
/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/lib_json/json_reader.cpp:756:34: warning: 'Reader' is deprecated: Use CharReader and CharReaderBuilder instead. [-Wdeprecated-declarations]
  756 | Reader::Char Reader::getNextChar() {
      |                                  ^
In file included from /work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/lib_json/json_reader.cpp:10:
/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/include/json/reader.h:37:63: note: declared here
   37 |     "Use CharReader and CharReaderBuilder instead.") JSON_API Reader {
      |                                                               ^~~~~~
/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/lib_json/json_reader.cpp:810:21: warning: 'Reader' is deprecated: Use CharReader and CharReaderBuilder instead. [-Wdeprecated-declarations]
  810 | std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
      |                     ^~~~~~~~~~~~~~~
/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/include/json/reader.h:37:63: note: declared here
   37 |     "Use CharReader and CharReaderBuilder instead.") JSON_API Reader {
      |                                                               ^~~~~~

comment out the function as its usage if also commented out
@eeliu
Copy link
Collaborator

eeliu commented Aug 8, 2024

/work/GIT/pecl-and-ext/pinpoint/common/jsoncpp/lib_json/json_reader.cpp:756:34: warning: 'Reader' is deprecated: Use CharReader and CharReaderBuilder instead. [-Wdeprecated-declarations]

yes, those warring comes from jsoncpp( a older version)

@eeliu eeliu self-requested a review August 8, 2024 00:42
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.63%. Comparing base (5187cc0) to head (47c602c).
Report is 28 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #667      +/-   ##
==========================================
- Coverage   80.79%   80.63%   -0.16%     
==========================================
  Files          22       22              
  Lines        1536     1539       +3     
  Branches      165      166       +1     
==========================================
  Hits         1241     1241              
- Misses        162      164       +2     
- Partials      133      134       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@eeliu eeliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -67,7 +67,7 @@ ZEND_GET_MODULE(pinpoint_php)
#endif

ZEND_DECLARE_MODULE_GLOBALS(pinpoint_php);
static void pinpoint_log(char *msg);
//static void pinpoint_log(char *msg);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ok to disable this function.

@eeliu eeliu merged commit 057ed05 into pinpoint-apm:dev Aug 8, 2024
56 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants