Fix the constant expression problem of gcc.

This commit is contained in:
gc87
2021-07-23 10:52:32 +08:00
parent fe61a75f8e
commit bd03d877df
+3 -3
View File
@@ -22,6 +22,8 @@
#include "neuron.h"
#define SAMPLE_PLUGIN_DESCR "A sample plugin for demonstrate how to write a neuron plugin"
const neu_plugin_module_t neu_plugin_module;
struct neu_plugin {
@@ -138,11 +140,9 @@ static const neu_plugin_intf_funs_t plugin_intf_funs = { .open =
.request = sample_plugin_request,
.event_reply = sample_plugin_event_reply };
static const char *const sample_plugin_descr =
"A sample plugin for demonstrate how to write a neuron plugin";
const neu_plugin_module_t neu_plugin_module = { .version =
NEURON_PLUGIN_VER_1_0,
.module_name = "neuron-sample-plugin",
.module_descr = sample_plugin_descr,
.module_descr = SAMPLE_PLUGIN_DESCR,
.intf_funs = &plugin_intf_funs };