Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save masaykh/99a67da43b2b296ec45105daf9f8de22 to your computer and use it in GitHub Desktop.
Save masaykh/99a67da43b2b296ec45105daf9f8de22 to your computer and use it in GitHub Desktop.
ide.cpp without mman.h
ide.cpp: In member function 'virtual void IDEATADevice::writecommand(uint8_t)':
ide.cpp:3299:62: warning: unknown conversion type character 'l' in format [-Wformat=]
(unsigned long long)(phys_sects * phys_cyls * phys_heads));
^
ide.cpp:3299:62: warning: unknown conversion type character 'l' in format [-Wformat=]
ide.cpp:3299:62: warning: too many arguments for format [-Wformat-extra-args]
ide.cpp: At global scope:
ide.cpp:3850:58: error: expected identifier before ')' token
static void IDE_Init(Section* sec,unsigned char interface) {
^
ide.cpp:3850:58: error: two or more data types in declaration of 'parameter'
ide.cpp: In function 'void IDE_Init(...)':
ide.cpp:3851:52: error: 'sec' was not declared in this scope
Section_prop *section=static_cast<Section_prop *>(sec);
^~~
In file included from ../../include/clockdomain.h:11:0,
from ../../include/dosbox.h:51,
from ide.cpp:12:
ide.cpp:3854:9: error: expected primary-expression before 'struct'
assert(interface < MAX_IDE_CONTROLLERS);
^
ide.cpp:3854:9: error: expected ')' before 'struct'
ide.cpp:3854:41: error: expected ')' before ';' token
assert(interface < MAX_IDE_CONTROLLERS);
^
ide.cpp:3854:41: error: expected ')' before ';' token
In file included from D:/newmsys/mingw32/i686-w64-mingw32/include/oleidl.h:7:0,
from D:/newmsys/mingw32/i686-w64-mingw32/include/ole2.h:38,
from D:/newmsys/mingw32/i686-w64-mingw32/include/wtypes.h:12,
from D:/newmsys/mingw32/i686-w64-mingw32/include/winscard.h:10,
from D:/newmsys/mingw32/i686-w64-mingw32/include/windows.h:97,
from D:/newmsys/mingw32/i686-w64-mingw32/include/winsock2.h:23,
from ../../include/portable_endian.h:63,
from ../../include/mem.h:19,
from ide.cpp:15:
ide.cpp:3864:59: error: expected primary-expression before 'struct'
LOG(LOG_MISC,LOG_DEBUG)("Initializing IDE controller %u",interface);
^
ide.cpp:3866:23: error: expected primary-expression before 'struct'
if (idecontroller[interface] != NULL) {
^
ide.cpp:3866:23: error: expected ']' before 'struct'
ide.cpp:3866:23: error: expected ')' before 'struct'
ide.cpp:3866:32: error: expected primary-expression before ']' token
if (idecontroller[interface] != NULL) {
^
In file included from D:/newmsys/mingw32/i686-w64-mingw32/include/oleidl.h:7:0,
from D:/newmsys/mingw32/i686-w64-mingw32/include/ole2.h:38,
from D:/newmsys/mingw32/i686-w64-mingw32/include/wtypes.h:12,
from D:/newmsys/mingw32/i686-w64-mingw32/include/winscard.h:10,
from D:/newmsys/mingw32/i686-w64-mingw32/include/windows.h:97,
from D:/newmsys/mingw32/i686-w64-mingw32/include/winsock2.h:23,
from ../../include/portable_endian.h:63,
from ../../include/mem.h:19,
from ide.cpp:15:
ide.cpp:3871:22: error: expected primary-expression before 'struct'
ide = idecontroller[interface] = new IDEController(sec,interface);
^
ide.cpp:3871:22: error: expected ']' before 'struct'
@joncampbell123
Copy link

Now that I think of it, "interface" is taken in the Windows environment in order to define COM/OLE interfaces.

I'll have to change the variable name.

@joncampbell123
Copy link

the latest commit renames that parameter to ide_interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment