compile release builds with -O3 instead of -Os because it catches more mistakes
authorThomas Bluemel <thomas@reactsoft.com>
Mon, 1 Aug 2005 12:57:34 +0000 (12:57 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Mon, 1 Aug 2005 12:57:34 +0000 (12:57 +0000)
svn path=/trunk/; revision=16951

reactos/ReactOS.xml
reactos/drivers/bus/serenum/fdo.c
reactos/lib/adns/adns.xml
reactos/lib/twain/twain_32.xml
reactos/ntoskrnl/io/device.c
reactos/subsys/system/usetup/usetup.xml

index 48d5d8c..8d162da 100644 (file)
@@ -18,7 +18,7 @@
                <property name="DBG_OR_KDBG" value="true" />
        </if>
        <if property="DBG" value="0">
-               <compilerflag>-Os</compilerflag>
+               <compilerflag>-O3</compilerflag>
                <compilerflag>-Wno-strict-aliasing</compilerflag>
                <compilerflag>-ftracer</compilerflag>
                <compilerflag>-momit-leaf-frame-pointer</compilerflag>
index 501d25c..b063122 100644 (file)
@@ -187,7 +187,7 @@ SerenumFdoPnp(
                        {
                                case BusRelations:
                                {
-                                       PDEVICE_RELATIONS DeviceRelations;
+                                       PDEVICE_RELATIONS DeviceRelations = NULL;
                                        DPRINT("Serenum: IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n");
                                        Status = SerenumFdoQueryBusRelations(DeviceObject, &DeviceRelations);
                                        Information = (ULONG_PTR)DeviceRelations;
index 54148ee..298a76d 100644 (file)
@@ -1,4 +1,4 @@
-<module name="adns" type="staticlibrary">
+<module name="adns" type="staticlibrary" warnings="true">
        <include base="adns">src</include>
        <include base="adns">adns_win32</include>
        <define name="__USE_W32API" />
index 9a91b47..6a97608 100644 (file)
@@ -1,4 +1,4 @@
-<module name="twain_32" type="win32dll" baseaddress="${BASEADDRESS_TWAIN_32}" installbase="system32" installname="twain_32.dll">
+<module name="twain_32" type="win32dll" baseaddress="${BASEADDRESS_TWAIN_32}" installbase="system32" installname="twain_32.dll" warnings="true">
        <importlibrary definition="twain_32.def" />
        <include base="twain_32">.</include>
        <define name="__USE_W32API" />
index 846c54a..d4fcc47 100644 (file)
@@ -251,8 +251,8 @@ IoAttachDevice(PDEVICE_OBJECT SourceDevice,
                PDEVICE_OBJECT *AttachedDevice)
 {
    NTSTATUS Status;
-   PFILE_OBJECT FileObject;
-   PDEVICE_OBJECT TargetDevice;
+   PFILE_OBJECT FileObject = NULL;
+   PDEVICE_OBJECT TargetDevice = NULL;
 
     /* Call the helper routine for an attach operation */
     DPRINT("IoAttachDevice\n");
index 6720755..4820430 100644 (file)
@@ -5,6 +5,7 @@
        <define name="__USE_W32API" />
        <define name="_DISABLE_TIDENTS" />
        <define name="_WIN32_WINNT">0x0502</define>
+       <define name="__NO_CTYPE_INLINES" />
        <linkerflag>-lgcc</linkerflag>
        <library>zlib</library>
        <library>vfatlib</library>