Skip to content

Commit 6b80bde

Browse files
committed
fix: remove 4 compilation warnings (unreachable break, 3 unused constants)
1 parent 28f9ba7 commit 6b80bde

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/llama-context.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ typedef void* cudaGraph_t;
1111
typedef void* cudaGraphExec_t;
1212
typedef int cudaError_t;
1313
#define cudaSuccess 0
14-
constexpr int cudaStreamCaptureModeGlobal = 0;
1514
constexpr int cudaStreamCaptureModeRelaxed = 2;
1615
extern "C" {
1716
int cudaStreamCreate(cudaStream_t*);
@@ -61,7 +60,6 @@ extern "C" {
6160
}
6261
constexpr int cudaMemcpyDeviceToHost = 2;
6362
constexpr int cudaMemcpyDefault = 4;
64-
constexpr int cudaMemcpyDeviceToDevice = 3;
6563

6664
// Static memory hijacking: additional CUDA API forward declarations
6765
extern "C" {
@@ -74,7 +72,6 @@ extern "C" {
7472
int cudaEventRecord(void * event, void * stream);
7573
int cudaStreamWaitEvent(void * stream, void * event, unsigned int flags);
7674
}
77-
constexpr int cudaMemcpyHostToDevice = 1;
7875
constexpr int cudaHostAllocDefault = 0;
7976
#endif
8077

@@ -883,7 +880,7 @@ static void extract_embd_pooled(
883880
case LLAMA_POOLING_TYPE_UNSPECIFIED:
884881
{
885882
GGML_ABORT("unknown pooling type");
886-
} break;
883+
}
887884
}
888885
}
889886

0 commit comments

Comments
 (0)