[evince] comics: Fix "function declaration isn’t a prototype" errors
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] comics: Fix "function declaration isn’t a prototype" errors
- Date: Sat, 25 Mar 2017 11:39:16 +0000 (UTC)
commit a2aa919cd29ed3256669687aa1ea49a569bafd7d
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 15 18:28:34 2017 +0100
comics: Fix "function declaration isn’t a prototype" errors
Need to use "void" as the arguments when declaring.
FIXME: Should be upstreamed!
https://bugzilla.gnome.org/show_bug.cgi?id=720742
cut-n-paste/unarr/lzmasdk/CpuArch.h | 4 ++--
cut-n-paste/unarr/rar/rarvm.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cut-n-paste/unarr/lzmasdk/CpuArch.h b/cut-n-paste/unarr/lzmasdk/CpuArch.h
index 4fee009..e3c9525 100644
--- a/cut-n-paste/unarr/lzmasdk/CpuArch.h
+++ b/cut-n-paste/unarr/lzmasdk/CpuArch.h
@@ -147,8 +147,8 @@ int x86cpuid_GetFirm(const Cx86cpuid *p);
#define x86cpuid_GetModel(p) (((p)->ver >> 4) & 0xF00F)
#define x86cpuid_GetStepping(p) ((p)->ver & 0xF)
-Bool CPU_Is_InOrder();
-Bool CPU_Is_Aes_Supported();
+Bool CPU_Is_InOrder(void);
+Bool CPU_Is_Aes_Supported(void);
#endif
diff --git a/cut-n-paste/unarr/rar/rarvm.h b/cut-n-paste/unarr/rar/rarvm.h
index 4fb0b47..51567a9 100644
--- a/cut-n-paste/unarr/rar/rarvm.h
+++ b/cut-n-paste/unarr/rar/rarvm.h
@@ -81,7 +81,7 @@ enum {
RARNumberOfInstructions = 40,
};
-RARProgram *RARCreateProgram();
+RARProgram *RARCreateProgram(void);
void RARDeleteProgram(RARProgram *prog);
bool RARProgramAddInstr(RARProgram *prog, uint8_t instruction, bool bytemode);
bool RARSetLastInstrOperands(RARProgram *prog, uint8_t addressingmode1, uint32_t value1, uint8_t
addressingmode2, uint32_t value2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]