Commit 34bcdc47 authored by Richard W.M. Jones's avatar Richard W.M. Jones
Browse files

generator: Add abort for unreachable code to avoid GCC warning

With ./configure --enable-gcc-warnings:

  generator/states-reply-structured.c: In function ‘enter_STATE_REPLY_STRUCTURED_REPLY_RESYNC’:
  generator/states-reply-structured.c:511:1: error: control reaches end of non-void function [-Werror=return-type]
  cc1: all warnings being treated as errors

Add a default case that just does abort ().  This should never be
reached.

Fixes: commit 9acf53b1 ("states: Add new RESYNC state ...")
parent 08830296
Pipeline #611464719 failed with stage
in 10 minutes and 34 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment