mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-07 00:20:00 +00:00
Fix linux warnings
This commit is contained in:
parent
c40fcdf39a
commit
c2ac6b3759
52 changed files with 165 additions and 70 deletions
|
@ -53,7 +53,7 @@ ALDeviceList::ALDeviceList()
|
|||
|
||||
index = 0;
|
||||
// go through device list (each device terminated with a single NULL, list terminated with double NULL)
|
||||
while (*devices != NULL) {
|
||||
while (*devices != '\0') {
|
||||
if (strcmp(defaultDeviceName, devices) == 0) {
|
||||
defaultDeviceIndex = index;
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ unsigned int ALDeviceList::GetMaxNumSources(int index)
|
|||
/*
|
||||
* Checks if the extension is supported on the given device
|
||||
*/
|
||||
bool ALDeviceList::IsExtensionSupported(int index, char *szExtName)
|
||||
bool ALDeviceList::IsExtensionSupported(int index, const char *szExtName)
|
||||
{
|
||||
bool bReturn = false;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
char *GetDeviceName(int index);
|
||||
void GetDeviceVersion(int index, int *major, int *minor);
|
||||
unsigned int GetMaxNumSources(int index);
|
||||
bool IsExtensionSupported(int index, char *szExtName);
|
||||
bool IsExtensionSupported(int index, const char *szExtName);
|
||||
int GetDefaultDevice();
|
||||
void FilterDevicesMinVer(int major, int minor);
|
||||
void FilterDevicesMaxVer(int major, int minor);
|
||||
|
@ -46,4 +46,4 @@ private:
|
|||
};
|
||||
#endif
|
||||
|
||||
#endif // ALDEVICELIST_H
|
||||
#endif // ALDEVICELIST_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue