diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-11-19 13:15:51 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-11-19 13:15:51 +0000 |
commit | ce1cc601f552748bf58e8d8367b3c46b31b4c29b (patch) | |
tree | eaf63c52b5062fa22f55d651138eb5cd20b0a102 /gcc/builtins.c | |
parent | 7e9355c669fa0c9e362b40b60cb3268605e2f12e (diff) | |
download | gcc-ce1cc601f552748bf58e8d8367b3c46b31b4c29b.zip gcc-ce1cc601f552748bf58e8d8367b3c46b31b4c29b.tar.gz gcc-ce1cc601f552748bf58e8d8367b3c46b31b4c29b.tar.bz2 |
Warning fixes:
* builtins.c (c_getstr): Constify variable.
* gmon-sol2.c (_mcleanup): Comment out #endif labels.
* conflict.c (const_conflict_graph_arc): New typedef.
(arc_hash, arc_eq): Avoid needlessly casting away const-ness.
* cppmacro.c (builtin_macro): Likewise.
* dwarf2out.c (output_comp_unit): Constify variable.
* fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
* protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
* ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
away const-ness.
* tradcpp.c (rescan, do_line, macroexpand, macarg): Use
ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
* varasm.c (const_str_htab_hash, const_str_htab_eq,
compare_constant_1, record_constant_1): Constify.
From-SVN: r37565
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index ec12cae..221cba6 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -278,7 +278,7 @@ c_getstr (src) { tree offset_node; int offset, max; - char *ptr; + const char *ptr; src = string_constant (src, &offset_node); if (src == 0) @@ -301,7 +301,7 @@ c_getstr (src) return 0; } - return (const char *) ptr + offset; + return ptr + offset; } /* Given TEM, a pointer to a stack frame, follow the dynamic chain COUNT |