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

Compilation fixes for powerpc build, -Wparentheses-equality error and missing header guards #3462

Closed
wants to merge 3 commits into from

Conversation

cdkamat
Copy link
Contributor

@cdkamat cdkamat commented Feb 2, 2018

This pull request contains miscellaneous compilation fixes.

Thanks,
Chinmay

Without the guards, a compilation with -D__STDC_FORMAT_MACROS errors out with

tools/write_stress.cc:59:0: error: "__STDC_FORMAT_MACROS" redefined [-Werror]
 #define __STDC_FORMAT_MACROS
Fix the following error:

rocksdb/monitoring/instrumented_mutex.cc:20:114: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
PerfStepTimer perf_step_timer_db_mutex_lock_nanos(&(perf_context.db_mutex_lock_nanos), true); if ((stats_code_ == DB_MUTEX_WAIT_MICROS)) { perf_step_timer_db_mutex_lock_nanos.Start(); };
Fixes the following error:

rocksdb/util/crc32c.cc:44:12: error: 'rocksdb::crc32c::arch_ppc_crc32' defined but not used [-Werror=unused-variable]
  static int arch_ppc_crc32 = 0;
@sagar0 sagar0 self-assigned this Feb 5, 2018
@siying siying requested a review from sagar0 February 8, 2018 21:17
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@sagar0 sagar0 left a comment

Choose a reason for hiding this comment

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

lgtm.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@sagar0 is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@cdkamat cdkamat deleted the compilation_fixes branch February 9, 2018 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants