Skip to content

Commit

Permalink
PYTHON-2331 Fix set_memory_error complier warning (#469)
Browse files Browse the repository at this point in the history
bson/buffer.c:36:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   36 | static void set_memory_error() {
      |             ^~~~~~~~~~~~~~~~
  • Loading branch information
ShaneHarvey authored Jul 27, 2020
1 parent 7a539f2 commit c16b5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bson/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct buffer {

/* Set Python's error indicator to MemoryError.
* Called after allocation failures. */
static void set_memory_error() {
static void set_memory_error(void) {
PyErr_NoMemory();
}

Expand Down

0 comments on commit c16b5b9

Please sign in to comment.