[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 for-4.7 10/14] libxl: add the printf-like attributes to a couple of functions
Wei Liu writes ("Re: [Xen-devel] [PATCH v2 for-4.7 10/14] libxl: add the printf-like attributes to a couple of functions"): > Sigh. I can't say I like turning that into a macro though. On the other > hand there doesn't seem to be an elegant way of solving that. Well, other than suppressing the warning somehow. > Roger, please at least make it look like a macro. Say, name it > DEVICE_MODEL_XS_PATH or something. I'm not sure I agree. I think if we can make it a function-like macro, then it is fine to give it a function-like name. (Note that many libc functions might be macros; getc is traditionally a #define.) Obviously it can't be function-like in that you must always pass it a literal, but violations of that constraint will be detected by the compiler. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |