Compiling xf86-video-nouveau with -Werror
Hello.
I was somewhat bored and started to hunt for compilation warnings. Attaching a patch for some rather obvious (two unused vars, one uninited external function).
It also complains about NV10EXAFallbackInfo_real in nv10_exa.c never being used.
It is placed with the following condition:
#if 0
#define NV10EXAFallbackInfo(X,Y,Z,S,T) NV10EXAFallbackInfo_real(X,Y,Z,S,T)
#else
#define NV10EXAFallbackInfo(X,Y,Z,S,T) do { ; } while (0) #endif
Since I do not know if this codepath ever is needed even during development I did not touch this in my patch.
src/nv50_sor.c +0 -1
@@ -110,7 +110,6 @@ NV50SorSetClockMode(nouveauOutputPtr output, int clock)ScrnInfoPtr pScrn = output->scrn;NVPtr pNv =NVPTR (pScrn);const int limit = output->dcb->type ==OUTPUT_LVDS ?112000 :165000 ; -int ret;xf86DrvMsg (pScrn->scrnIndex,X_INFO ,"NV50SorSetClockMode is called.\n" );
src/nv_driver.c +1 -0
@@ -964,6 +964,7 @@ NVPreInitDRM(ScrnInfoPtr pScrn)* go stomping on registers behind its back */ #ifdef XF86DRM_MODE +extern int drmCheckModesettingSupported (const char *busid); pNv->kms_enable = !drmCheckModesettingSupported (bus_id);/* Additional sanity check */
src/nv_i2c.c +0 -1
@@ -85,7 +85,6 @@ NVI2CPutBits(I2CBusPtr b, int clock, int data)static uint32_t NV50_GetI2CPort (ScrnInfoPtr pScrn,int index) {NVPtr pNv =NVPTR (pScrn); -uint32_t reg;if (index <=3 )return 0xe138 + (index *24 );
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
ons 2009-05-06 klockan 15:07 +0200 skrev Peter Hjalmarsson:
Quoted 6 lines
Hello.
I was somewhat bored and started to hunt for compilation warnings. Attaching a patch for some rather obvious (two unused vars, one uninited external function).
After actually grepping the code it became obvious that you be better off with for the external function include xf86drmMode.h somewhere, but that I will leave to you.