[RFA 01/67] Add add_cmd function overloads

Tom Tromey tom@tromey.com
Sat Sep 23 04:14:00 GMT 2017


>>>>> "Markus" == Metzger, Markus T <markus.t.metzger@intel.com> writes:

>> static void
>> +do_const_cfunc (struct cmd_list_element *c, char *args, int from_tty)
>> +{
>> +  c->function.const_cfunc (args, from_tty); /* Ok.  */
>> +}

Markus> Ok.?

This is copy-and-paste from the other function like this.
I think this is some way to suppress ARI warnings.
I don't know if ARI is still used...?

Markus> We shouldn't really have the NULL case, anymore.  It is still possible
Markus> but I don't expect it to be used.  Should we assert CFUNC != NULL?

I did this.

Tom



More information about the Gdb-patches mailing list