Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Compiling parrot with gcc's -Wredundant_decls option shows up a few

places where we're declaring functions twice in the same header file.
Patch below fixes.

From: Simon Glover <scog@amnh.org>


git-svn-id: https://svn.parrot.org/parrot/trunk@1345 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit 31f49680753fa9e25efe44eb60175acb76f8375c 1 parent 082a09e
Josh Wilmes authored
View
3  include/parrot/chartype.h
@@ -41,9 +41,6 @@ chartype_lookup_index(INTVAL n);
typedef Parrot_CharType_Transcoder CHARTYPE_TRANSCODER;
-CHARTYPE_TRANSCODER
-chartype_lookup_transcoder(const CHARTYPE *from, const CHARTYPE *to);
-
const Parrot_CharType Parrot_chartype_lookup(const char *name);
#define chartype_lookup Parrot_chartype_lookup
View
2  include/parrot/embed.h
@@ -32,8 +32,6 @@ void Parrot_setwarnings(Parrot, Parrot_warnclass);
Parrot_PackFile Parrot_readbc(Parrot, char *);
-void Parrot_setwarnings(Parrot, Parrot_warnclass);
-
void Parrot_loadbc(Parrot, Parrot_PackFile);
void Parrot_runcode(Parrot, int argc, char *argv[]);
View
2  include/parrot/packfile.h
@@ -119,8 +119,6 @@ BOOLVAL PackFile_Constant_unpack_string(struct Parrot_Interp *interpreter,
opcode_t *packed,
opcode_t packed_size);
-opcode_t PackFile_Constant_pack_size(struct PackFile_Constant *self);
-
#endif /* PACKFILE_H */
/*
View
3  runops_cores.c
@@ -47,9 +47,6 @@ runops_fast_core(struct Parrot_Interp *interpreter, opcode_t *pc)
* With bounds checking.
*/
-void trace_op(struct Parrot_Interp *interpreter, opcode_t *code_start,
- opcode_t *code_end, opcode_t *pc);
-
opcode_t *
runops_slow_core(struct Parrot_Interp *interpreter, opcode_t *pc)
{
View
3  src/runops_cores.c
@@ -47,9 +47,6 @@ runops_fast_core(struct Parrot_Interp *interpreter, opcode_t *pc)
* With bounds checking.
*/
-void trace_op(struct Parrot_Interp *interpreter, opcode_t *code_start,
- opcode_t *code_end, opcode_t *pc);
-
opcode_t *
runops_slow_core(struct Parrot_Interp *interpreter, opcode_t *pc)
{
Please sign in to comment.
Something went wrong with that request. Please try again.