Skip to content

Commit df6aff9

Browse files
committed
squash a compiler warning
this fix kind of messes up the indenter so the resulting line in the generated code isn't nicely indented but that can be fixed later. Signed-off-by: Howard Pritchard <[email protected]>
1 parent 459c3c5 commit df6aff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/bindings/ompi_bindings/c_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def status_argument(self):
881881
def init_code(self):
882882
code = [f'MPI_Status *{self.status_argument} = NULL;']
883883
if self.count_param is None:
884-
code.append(f'MPI_Status {self.tmpname};')
884+
code.append(f'MPI_Status {self.tmpname} = {{0}};')
885885
else:
886886
code.append(f'MPI_Status *{self.tmpname} = NULL;')
887887
code.append(self.if_should_set_status())

0 commit comments

Comments
 (0)