mirror of https://github.com/grpc/grpc.git
parent
3150744c71
commit
0032548674
15 changed files with 16 additions and 105 deletions
@ -1,37 +0,0 @@ |
||||
src/core/ext/transport/inproc/inproc_transport.cc: In function ‘void grpc_inproc_transport_init()’: |
||||
src/core/ext/transport/inproc/inproc_transport.cc:1092:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
src/core/ext/transport/inproc/inproc_transport.cc: In function ‘grpc_channel* grpc_inproc_channel_create(grpc_server*, grpc_channel_args*, void*)’: |
||||
src/core/ext/transport/inproc/inproc_transport.cc:1158:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
src/core/ext/transport/inproc/inproc_transport.cc: In function ‘void grpc_inproc_transport_shutdown()’: |
||||
src/core/ext/transport/inproc/inproc_transport.cc:1192:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
cc1plus: all warnings being treated as errors |
||||
make: *** [/usr/local/google/home/yashkt/grpc-projects/grpc-c-fork/grpc/objs/opt/src/core/ext/transport/inproc/inproc_transport.o] Error 1 |
||||
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc: In function ‘void grpc_ares_request_unref(grpc_ares_request*)’: |
||||
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:111:21: error: unused variable ‘new_exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx new_exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc: In function ‘void on_srv_query_done_cb(void*, int, int, unsigned char*, int)’: |
||||
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:229:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
cc1plus: all warnings being treated as errors |
||||
make: *** [/usr/local/google/home/yashkt/grpc-projects/grpc-c-fork/grpc/objs/opt/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.o] Error 1 |
||||
src/cpp/common/channel_arguments.cc: In destructor ‘grpc::ChannelArguments::~ChannelArguments()’: |
||||
src/cpp/common/channel_arguments.cc:70:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
src/cpp/common/channel_arguments.cc: In member function ‘void grpc::ChannelArguments::SetSocketMutator(grpc_socket_mutator*)’: |
||||
src/cpp/common/channel_arguments.cc:99:17: error: unused variable ‘exec_ctx’ [-Werror=unused-variable] |
||||
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
||||
^ |
||||
cc1plus: all warnings being treated as errors |
||||
make: *** [/usr/local/google/home/yashkt/grpc-projects/grpc-c-fork/grpc/objs/opt/src/cpp/common/channel_arguments.o] Error 1 |
||||
src/proto/grpc/testing/services.proto: warning: Import src/proto/grpc/testing/stats.proto but not used. |
||||
src/proto/grpc/testing/services.proto: warning: Import src/proto/grpc/testing/stats.proto but not used. |
||||
make: Target `all' not remade because of errors. |
Binary file not shown.
Binary file not shown.
unable to load file from head commit
|
@ -1,49 +0,0 @@ |
||||
import os |
||||
import sys |
||||
import re |
||||
|
||||
def repl_fn(m): |
||||
ret = '' |
||||
ret = ret + m.groups()[0] + '(' |
||||
for i in range(1, len(m.groups())): |
||||
if(m.groups()[i] != None): |
||||
ret = ret + m.groups()[i] |
||||
else: |
||||
break |
||||
ret = ret + ')' |
||||
print '\n' + m.group() + '\nwith\n' + ret + '\n' |
||||
return ret |
||||
|
||||
def work_on(fname): |
||||
with open(fname) as f: |
||||
p = re.compile(r'((?:\b[^\s\(\),]+)|(?:\(\*[^\s\(\),]+\)))\s*' + # function name or function pointer |
||||
r'\(\s*' + # open brackets |
||||
r'(?:(?:exec_ctx)|(?:grpc_exec_ctx\s*\*\s*exec_ctx)|(?:&\s*exec_ctx))' + # first exec_ctx paramenter |
||||
r'\s*,?' + # comma after exec_ctx |
||||
r'(\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'(\s*,\s*[^\),]+)?' + # all but first argument |
||||
r'\s*\)') # close brackets |
||||
res = p.sub(repl_fn, f.read()) |
||||
|
||||
f = open(fname, 'w') |
||||
f.write(res) |
||||
f.close() |
||||
#print res |
||||
|
||||
def main(): |
||||
file_list = [] |
||||
for line in sys.stdin: |
||||
work_on(line.strip()) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
main() |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue