diff options
author | Jacek Antonelli | 2009-11-18 03:37:22 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-18 03:44:07 -0600 |
commit | 5c2315db48750b0421b9bc84962c27a5c9d13388 (patch) | |
tree | e3716f9d98159143003757d36cd57664370e4d68 /linden | |
parent | Removed prepackaged libstdc++ (Linux only). Fixes VWR-12404. (diff) | |
download | meta-impy-5c2315db48750b0421b9bc84962c27a5c9d13388.zip meta-impy-5c2315db48750b0421b9bc84962c27a5c9d13388.tar.gz meta-impy-5c2315db48750b0421b9bc84962c27a5c9d13388.tar.bz2 meta-impy-5c2315db48750b0421b9bc84962c27a5c9d13388.tar.xz |
VWR-12620: Linux compile fails with -O2 (--type=Release)
Patch by Alissa Sabre.
Diffstat (limited to '')
-rw-r--r-- | linden/doc/contributions.txt | 1 | ||||
-rw-r--r-- | linden/indra/llmessage/lltemplatemessagereader.cpp | 3 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindowsdl.cpp | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt index 2acb043..64304dc 100644 --- a/linden/doc/contributions.txt +++ b/linden/doc/contributions.txt | |||
@@ -64,6 +64,7 @@ Alissa Sabre | |||
64 | VWR-7086 | 64 | VWR-7086 |
65 | VWR-9190 | 65 | VWR-9190 |
66 | VWR-10728 | 66 | VWR-10728 |
67 | VWR-12620 | ||
67 | Angus Boyd | 68 | Angus Boyd |
68 | VWR-592 | 69 | VWR-592 |
69 | Argent Stonecutter | 70 | Argent Stonecutter |
diff --git a/linden/indra/llmessage/lltemplatemessagereader.cpp b/linden/indra/llmessage/lltemplatemessagereader.cpp index 7a7d3bb..12ffcfa 100644 --- a/linden/indra/llmessage/lltemplatemessagereader.cpp +++ b/linden/indra/llmessage/lltemplatemessagereader.cpp | |||
@@ -675,8 +675,7 @@ BOOL LLTemplateMessageReader::decodeData(const U8* buffer, const LLHost& sender | |||
675 | 675 | ||
676 | // default to 0s. | 676 | // default to 0s. |
677 | U32 size = mvci.getSize(); | 677 | U32 size = mvci.getSize(); |
678 | std::vector<U8> data(size); | 678 | std::vector<U8> data(size, 0); |
679 | memset(&(data[0]), 0, size); | ||
680 | cur_data_block->addData(mvci.getName(), &(data[0]), | 679 | cur_data_block->addData(mvci.getName(), &(data[0]), |
681 | size, mvci.getType()); | 680 | size, mvci.getType()); |
682 | } | 681 | } |
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp index 5209e6f..c3427d6 100644 --- a/linden/indra/llwindow/llwindowsdl.cpp +++ b/linden/indra/llwindow/llwindowsdl.cpp | |||
@@ -2273,6 +2273,7 @@ BOOL LLWindowSDL::dialog_color_picker ( F32 *r, F32 *g, F32 *b) | |||
2273 | GtkColorSelection *colorsel = GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG(win)->colorsel); | 2273 | GtkColorSelection *colorsel = GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG(win)->colorsel); |
2274 | 2274 | ||
2275 | GdkColor color, orig_color; | 2275 | GdkColor color, orig_color; |
2276 | orig_color.pixel = 0; | ||
2276 | orig_color.red = guint16(65535 * *r); | 2277 | orig_color.red = guint16(65535 * *r); |
2277 | orig_color.green= guint16(65535 * *g); | 2278 | orig_color.green= guint16(65535 * *g); |
2278 | orig_color.blue = guint16(65535 * *b); | 2279 | orig_color.blue = guint16(65535 * *b); |