Project

General

Profile

Actions

Bug #9716

closed

Warning in API headers when compiling with -Wstrict-prototypes

Added by Adam Crume over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Configuring qemu fails because of the compile errors:

/user/adamcrume/ceph-inst/include/rbd/../rados/librados.h:1882:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
/user/adamcrume/ceph-inst/include/rbd/../rados/librados.h:2123:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]

By default, the qemu configure script uses -Wall and -Wstrict-prototypes. This can be worked around by configuring qemu with --disable-werror

The warnings are for:

rados_write_op_t rados_create_write_op();
rados_read_op_t rados_create_read_op();

Actions #1

Updated by Adam Crume over 9 years ago

Forgot to mention that qemu uses -Werror by default, hence the errors.

Actions #2

Updated by Adam Crume over 9 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Josh Durgin over 9 years ago

  • Status changed from Fix Under Review to Resolved
  • Assignee set to Adam Crume
Actions

Also available in: Atom PDF