When generating thread-safe server code, handle procedures with void return
types correctly.
This commit is contained in:
parent
cbcc55799f
commit
d458f4629b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181630
@ -433,6 +433,9 @@ write_program(definition *def, const char *storage)
|
||||
if (mtflag) {
|
||||
f_print(fout, "\tunion {\n");
|
||||
for (proc = vp->procs; proc != NULL; proc = proc->next) {
|
||||
if (streq(proc->res_type, "void")) {
|
||||
continue;
|
||||
}
|
||||
f_print(fout, "\t\t");
|
||||
ptype(proc->res_prefix, proc->res_type, 0);
|
||||
pvname(proc->proc_name, vp->vers_num);
|
||||
|
Loading…
Reference in New Issue
Block a user