summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-10-02 17:52:10 +0200
committerMichel Dänzer <michel@daenzer.net>2018-10-02 17:52:10 +0200
commitb6ee7f92cfaa2c134bee101cf89983db73f4c28d (patch)
treebc825a11f72614881fb7b3246ceae219f67cd6f9 /src
parent955373a3e69baa241a1f267e96d04ddb902f689f (diff)
Cast return value of amdgpu_get_marketing_name to char*
Avoids compiler warning with xserver < 1.16: ../../src/amdgpu_kms.c: In function ‘AMDGPUPreInitChipType_KMS’: ../../src/amdgpu_kms.c:1203:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] pScrn->chipset = amdgpu_get_marketing_name(pAMDGPUEnt->pDev); ^
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 06bba55..87c06d3 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1200,7 +1200,7 @@ static Bool AMDGPUPreInitChipType_KMS(ScrnInfoPtr pScrn,
AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(pScrn);
info->Chipset = info->PciInfo->device_id;
- pScrn->chipset = amdgpu_get_marketing_name(pAMDGPUEnt->pDev);
+ pScrn->chipset = (char*)amdgpu_get_marketing_name(pAMDGPUEnt->pDev);
if (!pScrn->chipset)
pScrn->chipset = "Unknown AMD Radeon GPU";