Add use of const in opencl-lang.c
I found another expression-related spot that could use constification. This patch adds it. Tested by rebuilding. gdb/ChangeLog 2020-11-14 Tom Tromey <tom@tromey.com> * opencl-lang.c (opencl_component_ref): Make "comps" const.
This commit is contained in:
parent
2c5b1849a6
commit
749065b7a7
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2020-11-14 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* opencl-lang.c (opencl_component_ref): Make "comps" const.
|
||||||
|
|
||||||
2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
|
2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
|
* arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
|
||||||
|
|
|
@ -327,8 +327,8 @@ create_value (struct gdbarch *gdbarch, struct value *val, enum noside noside,
|
||||||
/* OpenCL vector component access. */
|
/* OpenCL vector component access. */
|
||||||
|
|
||||||
static struct value *
|
static struct value *
|
||||||
opencl_component_ref (struct expression *exp, struct value *val, char *comps,
|
opencl_component_ref (struct expression *exp, struct value *val,
|
||||||
enum noside noside)
|
const char *comps, enum noside noside)
|
||||||
{
|
{
|
||||||
LONGEST lowb, highb;
|
LONGEST lowb, highb;
|
||||||
int src_len;
|
int src_len;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue