diff options
author | Kristian Høgsberg <[email protected]> | 2006-03-29 22:32:38 +0000 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2006-03-29 22:32:38 +0000 |
commit | 3a6d968f37683835bd92b1b853e0ac8cadd0fdef (patch) | |
tree | 7b8d5aa056b3cb00819cbb25c61bb46e8a2a4e99 /src/mesa/glapi/glX_proto_recv.py | |
parent | cec74532bf62bb0cb29ea89a34fc7ae14b70648c (diff) |
Fixes to silence warnings in code generated by glapi scripts.
Diffstat (limited to 'src/mesa/glapi/glX_proto_recv.py')
-rw-r--r-- | src/mesa/glapi/glX_proto_recv.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_proto_recv.py b/src/mesa/glapi/glX_proto_recv.py index a0c4ea0541a..86bdd0ec93a 100644 --- a/src/mesa/glapi/glX_proto_recv.py +++ b/src/mesa/glapi/glX_proto_recv.py @@ -237,7 +237,7 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): for param in f.parameterIterator(): - if param.is_counter or param.is_image() or param.is_output or len(param.count_parameter_list): + if param.is_counter or param.is_image() or param.is_output or param.name in f.count_parameter_list or len(param.count_parameter_list): location = param.name else: location = self.fetch_param(param) @@ -360,6 +360,8 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): else: swap_func = self.swap_name(sub[0]) print ' %s = (%s) %s( (%s *) (pc + %s), %s ); break;' % (param.name, param.type_string(), swap_func, self.real_types[sub[0]], o, count_name) + print ' default:' + print ' return;' print ' }' else: swap_func = self.swap_name(type_size) |