X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Futil.c;h=8f1892ed2c4e0566075a05afa27de5382a2b6e5f;hb=d5bac2a0cfea7efc27c4f06de132460390a2e920;hp=65cb36087dc71e752e68d4cde17698aae940870a;hpb=29d4af6016b5616ccac56c702c078e36189ef951;p=openvswitch diff --git a/lib/util.c b/lib/util.c index 65cb3608..8f1892ed 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -383,3 +383,9 @@ dir_name(const char *file_name) return xmemdup0(file_name, len); } } + +/* Pass a value to this function if it is marked with + * __attribute__((warn_unused_result)) and you genuinely want to ignore + * its return value. (Note that every scalar type can be implicitly + * converted to bool.) */ +void ignore(bool x OVS_UNUSED) { }