[PR #5058] [MERGED] gpu: Fix build warning #11664

Closed
opened 2026-04-12 23:35:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5058
Author: @coolljt0725
Created: 6/15/2024
Status: Merged
Merged: 6/15/2024
Merged by: @dhiltgen

Base: mainHead: fix_build_warning


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 gpu/gpu_info_oneapi.c (+1 -1)

📄 Description

Fix build warning

# github.com/ollama/ollama/gpu
gpu_info_oneapi.c: In function ‘oneapi_check_vram’:
gpu_info_oneapi.c:163:51: warning: format not a string literal and no format arguments [-Wformat-security]
  163 |   snprintf(&resp->gpu_name[0], GPU_NAME_LEN, props.modelName);
      |                                              ~~~~~^~~~~~~~~~


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5058 **Author:** [@coolljt0725](https://github.com/coolljt0725) **Created:** 6/15/2024 **Status:** ✅ Merged **Merged:** 6/15/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `fix_build_warning` --- ### 📝 Commits (1) - [`225f0d1`](https://github.com/ollama/ollama/commit/225f0d121948f4d9ca8700d66c3514f233feaffd) gpu: Fix build warning ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu_info_oneapi.c` (+1 -1) </details> ### 📄 Description Fix build warning ``` # github.com/ollama/ollama/gpu gpu_info_oneapi.c: In function ‘oneapi_check_vram’: gpu_info_oneapi.c:163:51: warning: format not a string literal and no format arguments [-Wformat-security] 163 | snprintf(&resp->gpu_name[0], GPU_NAME_LEN, props.modelName); | ~~~~~^~~~~~~~~~ ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:35:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11664